Print this page
make: fix GCC warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/lib/vroot/lock.cc
          +++ new/usr/src/cmd/make/lib/vroot/lock.cc
↓ open down ↓ 103 lines elided ↑ open up ↑
 104  104                  BLOCK_INTERUPTS;
 105  105                  r = symlink(name, lockname);
 106  106                  if (r == 0) {
 107  107                          *file_locked = 1;
 108  108                          UNBLOCK_INTERUPTS;
 109  109                          return 0; /* success */
 110  110                  }
 111  111                  UNBLOCK_INTERUPTS;
 112  112  
 113  113                  if (errno != EEXIST) {
 114      -                        file_lock_error(msg, name, NOCATGETS("symlink(%s, %s)"),
      114 +                        file_lock_error(msg, name, (char *)NOCATGETS("symlink(%s, %s)"),
 115  115                              (int) name, (int) lockname);
 116  116                          fprintf(stderr, "%s", msg);
 117  117                          return errno;
 118  118                  }
 119  119  
 120  120                  counter = 0;
 121  121                  for (;;) {
 122  122                          sleep(1); 
 123  123                          r = lstat(lockname, &statb);
 124  124                          if (r == -1) {
↓ open down ↓ 67 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX