change the hardcoded error constant (0x80000000UL) to a nice flexible define (BB_GETOPT_ERROR)

This commit is contained in:
Mike Frysinger 2005-05-11 00:39:03 +00:00
parent 55e2cf6533
commit 348e84c202
11 changed files with 13 additions and 12 deletions

View file

@ -238,7 +238,7 @@ start_stop_daemon_main(int argc, char **argv)
&startas, &cmdname, &signame, &userspec, &execname, &pidfile);
/* Check one and only one context option was given */
if ((opt & 0x80000000UL) || (opt & (SSD_CTX_STOP | SSD_CTX_START)) == 0) {
if ((opt & BB_GETOPT_ERROR) || (opt & (SSD_CTX_STOP | SSD_CTX_START)) == 0) {
bb_show_usage();
}