Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix failure when in static only route table mode
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
si
/
src
/
si95
/
sipoll.c
diff --git
a/src/rmr/si/src/si95/sipoll.c
b/src/rmr/si/src/si95/sipoll.c
index
c47fb97
..
8c28977
100644
(file)
--- a/
src/rmr/si/src/si95/sipoll.c
+++ b/
src/rmr/si/src/si95/sipoll.c
@@
-53,7
+53,7
@@
extern int SIpoll( struct ginfo_blk *gptr, int msdelay )
char ibuf[1025];
int i; // loop index
struct tp_blk *tpptr; // pointer at tp stuff
char ibuf[1025];
int i; // loop index
struct tp_blk *tpptr; // pointer at tp stuff
- struct tp_blk *nextone; // pointer at next block to process
+ struct tp_blk *nextone
= NULL
; // pointer at next block to process
int pstat; // poll status
int kstat; // keyboard status
struct timeval delay; // delay to use on select call
int pstat; // poll status
int kstat; // keyboard status
struct timeval delay; // delay to use on select call
@@
-120,7
+120,6
@@
extern int SIpoll( struct ginfo_blk *gptr, int msdelay )
}
// for( tpptr = gptr->tplist; tpptr != NULL; tpptr = tpptr->next )
}
// for( tpptr = gptr->tplist; tpptr != NULL; tpptr = tpptr->next )
- for( tpptr = gptr->tplist; tpptr != NULL; tpptr = nextone )
tpptr = gptr->tplist;
while( tpptr != NULL ) {
nextone = tpptr->next; // allow for a delete in loop
tpptr = gptr->tplist;
while( tpptr != NULL ) {
nextone = tpptr->next; // allow for a delete in loop