summaryrefslogtreecommitdiff
path: root/soltools/cpp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 16:19:59 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 16:20:39 +0100
commit103d1f44864b49ca99cbadd59a5cb49a34fd1cab (patch)
treec3847ef667eb872c44deeecd02d935af17bbfdf5 /soltools/cpp
parentb6f6cf85abaf93ac99683aefbc81e981c5b14e22 (diff)
loplugin:nullptr (automatic rewrite; Mac-specific code)
Change-Id: Ib52f7fb846886dd970ddd51475f890cd81c8f2b5
Diffstat (limited to 'soltools/cpp')
-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;
}