Changeset 5898fa1 in rtems-libbsd


Ignore:
Timestamp:
Oct 30, 2013, 1:22:27 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
6da9b23
Parents:
4db7af6
git-author:
Sebastian Huber <sebastian.huber@…> (10/30/13 13:22:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:54)
Message:

NETSTAT(1): Fix isalpha() and isdigit() usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/usr.bin/netstat/main.c

    r4db7af6 r5898fa1  
    446446
    447447                        iflag = 1;
    448                         for (cp = interface = optarg; isalpha(*cp); cp++)
     448                        for (cp = interface = optarg; isalpha((unsigned char) *cp); cp++)
    449449                                continue;
    450450                        unit = atoi(cp);
     
    521521#ifdef  BACKWARD_COMPATIBILITY
    522522        if (*argv) {
    523                 if (isdigit(**argv)) {
     523                if (isdigit((unsigned char) **argv)) {
    524524                        interval = atoi(*argv);
    525525                        if (interval <= 0)
Note: See TracChangeset for help on using the changeset viewer.