summaryrefslogtreecommitdiff
path: root/misc/ips.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-02-07 14:27:23 +0100
committerMaria Matejka <mq@ucw.cz>2023-02-07 14:27:23 +0100
commita2fd889a3b95960311560a3796be5cdf92affcfc (patch)
treea2a1a2fbe6a957a37e0b6e2241d072555e07b95a /misc/ips.c
parentf7c2a886c9fb73b2749d5e270f15b79c44e72a62 (diff)
parent0bb04d5390f21b0c96fc4894ba5d5510c541f0ef (diff)
Merge commit '0bb04d5390f21b0c96fc4894ba5d5510c541f0ef' into HEAD
Diffstat (limited to 'misc/ips.c')
-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++;