summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/ipcs.c')
-rw-r--r--sys-utils/ipcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c
index 0673be564..01cc49488 100644
--- a/sys-utils/ipcs.c
+++ b/sys-utils/ipcs.c
@@ -149,7 +149,7 @@ main (int argc, char **argv) {
textdomain(PACKAGE);
progname = argv[0];
- while ((opt = getopt (argc, argv, options)) != EOF) {
+ while ((opt = getopt (argc, argv, options)) != -1) {
switch (opt) {
case 'i':
id = atoi (optarg);