Print this page
make: fix GCC warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/misc.cc
          +++ new/usr/src/cmd/make/bin/misc.cc
↓ open down ↓ 854 lines elided ↑ open up ↑
 855  855          }
 856  856          return (0);
 857  857  }
 858  858  
 859  859  /* resolve - check for specified file in specified directory
 860  860   *      sets up dir, following symlinks.
 861  861   *      returns zero for success, or
 862  862   *      -1 for error (with errno set properly)
 863  863   */
 864  864  static int
 865      -resolve (char   *indir, /* search directory */
 866      -         char   *cmd,   /* search for name */
      865 +resolve (const char *indir,     /* search directory */
      866 +         const char *cmd,       /* search for name */
 867  867           char   *dir,   /* directory buffer */
 868  868           char   **run)  /* resultion name ptr ptr */
 869  869  {
 870  870      char               *p;
 871  871      int                 rv = -1;
 872  872      int                 sll;
 873  873      char                symlink[MAXPATHLEN + 1];
 874  874  
 875  875      do {
 876  876          errno = ENAMETOOLONG;
↓ open down ↓ 126 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX