diff options
-rw-r--r-- | fd.c | 4 | ||||
-rw-r--r-- | scope.c | 5 | ||||
-rw-r--r-- | table11.c | 2 |
3 files changed, 5 insertions, 6 deletions
@@ -218,8 +218,8 @@ AcceptConnection ( FD ConnectionSocket) { FD ClientFD; - struct sockaddr_in from; - int len = sizeof (from); + struct sockaddr_in from; + socklen_t len = sizeof (from); int tmp = 1; enterprocedure("ConnectToClient"); @@ -466,8 +466,7 @@ CMDBreak ( { for (prev = &breakPoints; *prev; prev = &(*prev)->next); while (*++argv) { - if (minorname = strchr(*argv, ':')) { - int r; + if ((minorname = strchr(*argv, ':'))) { *minorname = '\0'; if (!CMDStringToInt (minorname + 1, &minorop) || (minorop < 0) || (minorop > 255)) { @@ -564,7 +563,7 @@ CMDDelete ( while (*++argv) { if (!CMDStringToInt (*argv, &number)) return CMDSyntax; - for (prev = &breakPoints; bp = *prev; prev = &bp->next) + for (prev = &breakPoints; (bp = *prev) != NULL; prev = &bp->next) { if (bp->number == number) { @@ -165,7 +165,7 @@ DeleteValueRec ( { ValuePtr *bucket, value; - for (bucket = &buckets[HASH(key)]; value = *bucket; bucket = &value->next) + for (bucket = &buckets[HASH(key)]; (value = *bucket) != NULL; bucket = &value->next) { if (value->key == key) { |