summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/ips.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/ips.c b/misc/ips.c
index 467cc25d..ea8eef7f 100644
--- a/misc/ips.c
+++ b/misc/ips.c
@@ -60,10 +60,12 @@ main(int argc, char **argv)
{
uint i, e;
if (scanf("%x/%d", &i, &e) != 2)
+ {
if (feof(stdin))
break;
- else
- fprintf(stderr, "BUGGG\n");
+ else
+ fprintf(stderr, "BUGGG\n");
+ }
// i >>= (32-e);
// i |= (i >> e);
cnt++;