X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcommand-line.c;h=23ed53fb48f78c02634da1285ad5bf1a38410476;hb=6b7c12fdc1d3a08a934b29109fa6ffac6b45ebe0;hp=2f99798489113b0c070bfea0b2db198555b1e34d;hpb=40f0707cd9d105203c2b8b97a955b57aca426f13;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, ...) { }