summaryrefslogtreecommitdiff
path: root/src/su.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/su.c')
-rw-r--r--src/su.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/su.c b/src/su.c
index 51e2e8165..6c8a942fc 100644
--- a/src/su.c
+++ b/src/su.c
@@ -467,8 +467,7 @@ main (int argc, char **argv)
simulate_login = 0;
change_environment = 1;
- while ((optc = getopt_long (argc, argv, "c:flmps:", longopts, (int *) 0))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "c:flmps:", longopts, NULL)) != -1)
{
switch (optc)
{