fix to build with relay turned on

This commit is contained in:
ehouse 2007-06-08 03:15:52 +00:00
parent 941244ce26
commit 02f7fdc85e
2 changed files with 17 additions and 2 deletions

View file

@ -1,4 +1,4 @@
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; -*- */
/* -*-mode: C; fill-column: 77; c-basic-offset: 4; compile-command: "make ARCH=ARM_ONLY MEMDEBUG=TRUE"; -*- */
/*
* Copyright 2003 by Eric House (xwords@eehouse.org). All rights reserved.
*
@ -45,9 +45,22 @@ typedef struct ConnsDlgState {
CommsAddrRec* addr;
XP_BtAddr btAddr; /* since there's no field, save it here */
XP_BtAddrStr tmp;
char btName[32];
char btName[PALM_BT_NAME_LEN];
} ConnsDlgState;
static void
strFromField( XP_U16 id, XP_UCHAR* buf, XP_U16 max )
{
FieldPtr field = getActiveObjectPtr( id );
XP_UCHAR* str = FldGetTextPtr( field );
XP_U16 len = FldGetTextLength( field );
if ( len > max-1 ) {
len = max - 1;
}
XP_MEMCPY( buf, str, len );
buf[len] = '\0';
} /* strFromField */
static void
ctlsFromState( PalmAppGlobals* XP_UNUSED_BT(globals), ConnsDlgState* state )
{

View file

@ -25,6 +25,8 @@
#include "comms.h"
#include "palmmain.h"
#define PALM_BT_NAME_LEN 48
/* Needed: feedback to main so status can be posted on the board. Events we
* might care about:
*