From 103d1f44864b49ca99cbadd59a5cb49a34fd1cab Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 16:19:59 +0100 Subject: loplugin:nullptr (automatic rewrite; Mac-specific code) Change-Id: Ib52f7fb846886dd970ddd51475f890cd81c8f2b5 --- soltools/cpp/_getopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'soltools') 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; } -- cgit