summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--soltools/cpp/_getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/soltools/cpp/_getopt.c b/soltools/cpp/_getopt.c
index bd13860ae8f6..24a6cfb6199e 100644
--- a/soltools/cpp/_getopt.c
+++ b/soltools/cpp/_getopt.c
@@ -54,7 +54,7 @@ int
}
}
optopt = c = argv[optind][sp];
- if (c == ':' || (cp = strchr(opts, c)) == 0)
+ if (c == ':' || (cp = strchr(opts, c)) == NULL)
{
ERR(": illegal option -- ", c);
if (argv[optind][++sp] == '\0')
@@ -86,7 +86,7 @@ int
sp = 1;
optind++;
}
- optarg = 0;
+ optarg = NULL;
}
return c;
}