switch 0x80 to 0x103 for long options
We use 0x100+ to avoid collisions in the 8 bit getopt interface, so switch 0x80 to align with the other existing 0x100 options we have.
This commit is contained in:
parent
6034866d1c
commit
5400dcc509
@ -80,7 +80,7 @@ const struct option longopts[] = {
|
|||||||
{ "ionice", 1, NULL, 'I'},
|
{ "ionice", 1, NULL, 'I'},
|
||||||
{ "stop", 0, NULL, 'K'},
|
{ "stop", 0, NULL, 'K'},
|
||||||
{ "nicelevel", 1, NULL, 'N'},
|
{ "nicelevel", 1, NULL, 'N'},
|
||||||
{ "oom-score-adj",1, NULL,0x80},
|
{ "oom-score-adj",1, NULL, 0x103},
|
||||||
{ "retry", 1, NULL, 'R'},
|
{ "retry", 1, NULL, 'R'},
|
||||||
{ "start", 0, NULL, 'S'},
|
{ "start", 0, NULL, 'S'},
|
||||||
{ "startas", 1, NULL, 'a'},
|
{ "startas", 1, NULL, 'a'},
|
||||||
@ -424,7 +424,7 @@ int main(int argc, char **argv)
|
|||||||
applet, optarg);
|
applet, optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x80: /* --oom-score-adj */
|
case 0x103: /* --oom-score-adj */
|
||||||
if (sscanf(optarg, "%d", &oom_score_adj) != 1)
|
if (sscanf(optarg, "%d", &oom_score_adj) != 1)
|
||||||
eerrorx("%s: invalid oom-score-adj `%s'",
|
eerrorx("%s: invalid oom-score-adj `%s'",
|
||||||
applet, optarg);
|
applet, optarg);
|
||||||
|
@ -90,7 +90,7 @@ const struct option longopts[] = {
|
|||||||
{ "umask", 1, NULL, 'k'},
|
{ "umask", 1, NULL, 'k'},
|
||||||
{ "respawn-max", 1, NULL, 'm'},
|
{ "respawn-max", 1, NULL, 'm'},
|
||||||
{ "nicelevel", 1, NULL, 'N'},
|
{ "nicelevel", 1, NULL, 'N'},
|
||||||
{ "oom-score-adj",1, NULL,0x80},
|
{ "oom-score-adj",1, NULL, 0x103},
|
||||||
{ "pidfile", 1, NULL, 'p'},
|
{ "pidfile", 1, NULL, 'p'},
|
||||||
{ "respawn-period", 1, NULL, 'P'},
|
{ "respawn-period", 1, NULL, 'P'},
|
||||||
{ "retry", 1, NULL, 'R'},
|
{ "retry", 1, NULL, 'R'},
|
||||||
@ -902,7 +902,7 @@ int main(int argc, char **argv)
|
|||||||
applet, optarg);
|
applet, optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x80: /* --oom-score-adj */
|
case 0x103: /* --oom-score-adj */
|
||||||
if (sscanf(optarg, "%d", &oom_score_adj) != 1)
|
if (sscanf(optarg, "%d", &oom_score_adj) != 1)
|
||||||
eerrorx("%s: invalid oom-score-adj `%s'",
|
eerrorx("%s: invalid oom-score-adj `%s'",
|
||||||
applet, optarg);
|
applet, optarg);
|
||||||
|
Loading…
Reference in New Issue
Block a user