Mercurial > hg > nnchat
comparison nnchat.c @ 221:f6160051b72e
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 27 Nov 2010 17:44:18 +0200 |
parents | 0e60593006c9 |
children | a1fefbce0b7a |
comparison
equal
deleted
inserted
replaced
220:ec525f2d0040 | 221:f6160051b72e |
---|---|
916 time_t prevTime; | 916 time_t prevTime; |
917 char *tmpStr; | 917 char *tmpStr; |
918 nn_editbuf_t *editBuf = nn_editbuf_new(NN_TMPBUF_SIZE); | 918 nn_editbuf_t *editBuf = nn_editbuf_new(NN_TMPBUF_SIZE); |
919 nn_editbuf_t *histBuf[SET_MAX_HISTORY+2]; | 919 nn_editbuf_t *histBuf[SET_MAX_HISTORY+2]; |
920 int histPos = 0, histMax = 0; | 920 int histPos = 0, histMax = 0; |
921 BOOL first = TRUE; | 921 BOOL firstUpdate = TRUE; |
922 | 922 |
923 cfgitem_t *tmpcfg; | 923 cfgitem_t *tmpcfg; |
924 char *homeDir = NULL; | 924 char *homeDir = NULL; |
925 | 925 |
926 memset(histBuf, 0, sizeof(histBuf)); | 926 memset(histBuf, 0, sizeof(histBuf)); |
1363 } | 1363 } |
1364 break; | 1364 break; |
1365 } | 1365 } |
1366 } while (c != ERR && !exitProg && ++cnt < 10); | 1366 } while (c != ERR && !exitProg && ++cnt < 10); |
1367 | 1367 |
1368 if (update || first) { | 1368 if (update || firstUpdate) { |
1369 /* Update edit line */ | 1369 /* Update edit line */ |
1370 printEditBuf(setPrvMode ? setTarget : "", editBuf); | 1370 printEditBuf(setPrvMode ? setTarget : "", editBuf); |
1371 updateStatus(insertMode); | 1371 updateStatus(insertMode); |
1372 first = FALSE; /* a nasty hack ... */ | 1372 firstUpdate = FALSE; /* a nasty hack ... */ |
1373 } | 1373 } |
1374 } /* !optDaemon */ | 1374 } /* !optDaemon */ |
1375 | 1375 |
1376 if (++updateCount > 10) { | 1376 if (++updateCount > 10) { |
1377 time_t tmpTime = time(NULL); | 1377 time_t tmpTime = time(NULL); |