X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=testbn.c;h=05f62767c5cb32bf854892d8c389f7db4e88bbec;hb=3f29d939ee6d20789eff0fb779592f64fc4bf892;hp=15f3b9806438f0a2a9f68c1fbf323124d26a3d4f;hpb=a9f591eaa86d8b73602ca25d219223aa94d11618;p=PuTTY.git diff --git a/testbn.c b/testbn.c index 15f3b980..05f62767 100644 --- a/testbn.c +++ b/testbn.c @@ -33,6 +33,9 @@ int random_byte(void) #define fromxdigit(c) ( (c)>'9' ? ((c)&0xDF) - 'A' + 10 : (c) - '0' ) +/* For Unix in particular, but harmless if this main() is reused elsewhere */ +const int buildinfo_gtk_relevant = FALSE; + int main(int argc, char **argv) { char *buf; @@ -55,7 +58,7 @@ int main(int argc, char **argv) while (*bufp && !isspace((unsigned char)*bufp)) bufp++; - if (bufp) + if (*bufp) *bufp++ = '\0'; while (*bufp) { @@ -82,8 +85,6 @@ int main(int argc, char **argv) val = val * 16 + fromxdigit(start[i+1]); *q++ = val; } - - ptrs[ptrnum] = q; } if (!strcmp(buf, "mul")) {