Ignore:
Timestamp:
Dec 14, 2022, 10:17:38 AM (3 years ago)
Author:
bird
Message:

kash: addressed some pedantic warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/parser.c

    r3477 r3573  
    393393                                synexpect(psh, -1);
    394394                } else {
    395                         static char argvars[5] = {CTLVAR, VSNORMAL|VSQUOTE,
     395                        static char argvars[5] = {CTLVAR, (char)(unsigned char)(VSNORMAL|VSQUOTE),
    396396                                                                   '@', '=', '\0'};
    397397                        n2 = pstallocnode(psh, sizeof (struct narg));
     
    497497                if (!redir)
    498498                        synexpect(psh, -1);
     499                /* FALLTHROUGH */
    499500        case TAND:
    500501        case TOR:
     
    16421643        const char *tmp;
    16431644
    1644     /* skip the path */
    1645     for (tmp = strpbrk(argv0, "\\/:"); tmp; tmp = strpbrk(argv0, "\\/:"))
    1646         argv0 = tmp + 1;
     1645        /* skip the path */
     1646        for (tmp = strpbrk(argv0, "\\/:"); tmp; tmp = strpbrk(argv0, "\\/:"))
     1647                argv0 = tmp + 1;
    16471648
    16481649        if (lenp) {
Note: See TracChangeset for help on using the changeset viewer.