source: scripts/patches/net-tools-1.60-gcc34-2.patch@ 8dc088d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8dc088d was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 2.9 KB
  • net-tools-1.60

    Submitted By: Zack Winkles <winkie AT linuxfromscratch DOT org>
    Date: 2004-04-09
    Initial Package Version: 1.60
    Origin: N/A
    Description: Fix some occurrences of syntax that GCC 3.4 doesn't like.
    
    diff -Naur net-tools-1.60.orig/hostname.c net-tools-1.60/hostname.c
    old new  
    9898            fprintf(stderr, _("%s: name too long\n"), program_name);
    9999            break;
    100100        default:
     101            ((void)0);
    101102        }
    102103        exit(1);
    103104    };
     
    117118            fprintf(stderr, _("%s: name too long\n"), program_name);
    118119            break;
    119120        default:
     121            ((void)0);
    120122        }
    121123        exit(1);
    122124    };
     
    174176        printf("%s\n", hp->h_name);
    175177        break;
    176178    default:
     179        ((void)0);
    177180    }
    178181}
    179182
  • lib/inet_sr.c

    diff -Naur net-tools-1.60.orig/lib/inet_sr.c net-tools-1.60/lib/inet_sr.c
    old new  
    105105    case 2:
    106106       isnet = 0; break;
    107107    default:
     108       ((void)0);
    108109    }
    109110
    110111    /* Fill in the other fields. */
  • net-tools-1.60

    diff -Naur net-tools-1.60.orig/mii-tool.c net-tools-1.60/mii-tool.c
    old new  
    379379/*--------------------------------------------------------------------*/
    380380
    381381const char *usage =
    382 "usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]
    383        -V, --version               display version information
    384        -v, --verbose               more verbose output
    385        -R, --reset                 reset MII to poweron state
    386        -r, --restart               restart autonegotiation
    387        -w, --watch                 monitor for link status changes
    388        -l, --log                   with -w, write events to syslog
    389        -A, --advertise=media,...   advertise only specified media
    390        -F, --force=media           force specified media technology
    391 media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,
    392        (to advertise both HD and FD) 100baseTx, 10baseT\n";
     382"usage: %s [-VvRrwl] [-A media,... | -F media] [interface ...]\n"
     383"       -V, --version               display version information\n"
     384"       -v, --verbose               more verbose output\n"
     385"       -R, --reset                 reset MII to poweron state\n"
     386"       -r, --restart               restart autonegotiation\n"
     387"       -w, --watch                 monitor for link status changes\n"
     388"       -l, --log                   with -w, write events to syslog\n"
     389"       -A, --advertise=media,...   advertise only specified media\n"
     390"       -F, --force=media           force specified media technology\n"
     391"media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,\n"
     392"       (to advertise both HD and FD) 100baseTx, 10baseT\n";
    393393
    394394int main(int argc, char **argv)
    395395{
Note: See TracBrowser for help on using the repository browser.