minor fixes to Joe Beuhler's NT patches for non-NT
if (centralLogFile) {
struct stat sbuf;
afs_int32 statcode;
-#ifdef AFS_NT40_ENV
+#ifndef AFS_NT40_ENV
char path[AFSDIR_PATH_MAX];
#endif
+
statcode = stat(centralLogFile, &sbuf);
centralLogIO = fopen(centralLogFile, "a");
if (!centralLogIO) {
}
#else
/* No explicit name provided: use Unix uid. */
- struct passwd pw = getpwuid(getuid());
- if (pw == 0) {
+ struct passwd *pw = getpwuid(getuid());
+ if (pw == NULL) {
printf("Can't figure out your name from your user id.\n");
return KABADCMD;
}
*/
static void FDSetSet(int nfds, fd_set *fd_set1, fd_set *fd_set2)
{
- unsigned int i;
+ unsigned int i, n;
if (fd_set1 == (fd_set*)0 || fd_set2 == (fd_set*)0)
return;
if (nfds == 0)
return;
- for (i=0,n = INTS_PER_FDS(nfds); i<n; i++) {
+ for (i = 0, n = INTS_PER_FDS(nfds); i < n; i++) {
fd_set1->FDS_BITS[i] |= fd_set2->FDS_BITS[i];
}
#endif