openbsd-ports/comms/kermit/patches/patch-af
marc d23fb20ab1 add patch to remove time_t warnings; remove
the unneeded (and deprecated) SETREUID and
SAVEDUID options from Makefile; install with
proper owner, group and modes so can access
lock directory and devices; install man in cat1,
not man1; clean up packing list
1998-03-03 21:45:42 +00:00

24 lines
532 B
Plaintext

--- ckufio.c.~1~ Sun Nov 24 16:20:49 1996
+++ ckufio.c Tue Mar 3 09:59:28 1998
@@ -2959,11 +2959,15 @@
}
tmx += n;
}
- time_stamp = localtime(&tmx);
- if (!time_stamp)
- return(-1);
- if (localtime(&tmx)->tm_isdst)
- tmx -= 60L * 60L; /* Adjust for daylight savings time */
+ {
+ time_t t = tmx;
+
+ time_stamp = localtime(&t);
+ if (!time_stamp)
+ return(-1);
+ if (localtime(&t)->tm_isdst)
+ tmx -= 60L * 60L; /* Adjust for daylight savings time */
+ }
}
return(tmx);
}