X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcommand-line.c;h=23ed53fb48f78c02634da1285ad5bf1a38410476;hb=4e6ca956f56b7a7f7284a4cd8788873ba57b229c;hp=2f99798489113b0c070bfea0b2db198555b1e34d;hpb=a4af00400a835eb87569ba40e21874c05e872c0f;p=openvswitch diff --git a/lib/command-line.c b/lib/command-line.c index 2f997984..23ed53fb 100644 --- a/lib/command-line.c +++ b/lib/command-line.c @@ -29,7 +29,7 @@ long_options_to_short_options(const struct option options[]) { char short_options[UCHAR_MAX * 3 + 1]; char *p = short_options; - + for (; options->name; options++) { const struct option *o = options; if (o->flag == NULL && o->val > 0 && o->val <= UCHAR_MAX) { @@ -43,7 +43,7 @@ long_options_to_short_options(const struct option options[]) } } *p = '\0'; - + return xstrdup(short_options); } @@ -180,12 +180,12 @@ proctitle_restore(void) /* Stubs that don't do anything on non-Linux systems. */ void -proctitle_init(int argc UNUSED, char **argv UNUSED) +proctitle_init(int argc OVS_UNUSED, char **argv OVS_UNUSED) { } void -proctitle_set(const char *format UNUSED, ...) +proctitle_set(const char *format OVS_UNUSED, ...) { }