Ignore:
Timestamp:
Dec 18, 2005, 5:54:17 AM (20 years ago)
Author:
bird
Message:

Re-initialize globals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/install.c

    r374 r375  
    141141        const char *group, *owner, *to_name;
    142142
     143        /* reinitialize globals */
     144        mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
     145        suffix = BACKUP_SUFFIX;
     146        gid = 0;
     147        uid = 0;
     148        dobackup = docompare = dodir = dopreserve = dostrip = nommap = safecopy = verbose = 0;
     149
     150        /* reset getopt and set progname. */
     151        g_progname = argv[0];
     152        opterr = 1;
     153        optarg = NULL;
     154        optopt = 0;
     155#if defined(__FreeBSD__) || defined(__EMX__)
     156        optreset = 1;
     157        optind = 1;
     158#else
     159        optind = 0; /* init */
     160#endif
     161
    143162        iflags = 0;
    144163        group = owner = NULL;
Note: See TracChangeset for help on using the changeset viewer.