IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2009, 12:22:32 PM (17 years ago)
Author:
eugene
Message:

use explicit numbers for true and false to distinguish from -1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/break.c

    r7917 r23582  
    88    remove_argument (N, &argc, argv);
    99    value = -1;
    10     if (!strcasecmp (argv[N], "on")) value = TRUE;
    11     if (!strcasecmp (argv[N], "off")) value = FALSE;
     10    if (!strcasecmp (argv[N], "on")) value = 1;
     11    if (!strcasecmp (argv[N], "off")) value = 0;
    1212    if (value == -1) {
    1313      gprint (GP_ERR, "USAGE: break -auto [on / off]\n");
Note: See TracChangeset for help on using the changeset viewer.