diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 1995-10-10 07:27:25 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 1995-10-10 07:27:25 +0000 |
commit | 36d262bd0a7e68ad47e222503da1ddf25424f436 (patch) | |
tree | fc80c6124fbf8977b0530f83303e4f5e256970ce /usr.sbin/bootpd/tzone.c | |
parent | 234cc877a2029d6d9f9caad7f721ed2b455ffe8c (diff) |
Notes
Diffstat (limited to 'usr.sbin/bootpd/tzone.c')
-rw-r--r-- | usr.sbin/bootpd/tzone.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/usr.sbin/bootpd/tzone.c b/usr.sbin/bootpd/tzone.c deleted file mode 100644 index 4adc4ae25c63..000000000000 --- a/usr.sbin/bootpd/tzone.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * tzone.c - get the timezone - * - * This is shared by bootpd and bootpef - */ - -#ifdef SVR4 -/* XXX - Is this really SunOS specific? -gwr */ -/* This is in <time.h> but only visible if (__STDC__ == 1). */ -extern long timezone; -#else /* SVR4 */ -/* BSD or SunOS */ -# include <sys/time.h> -# include <syslog.h> -#endif /* SVR4 */ - -#include "bptypes.h" -#include "report.h" -#include "tzone.h" - -/* This is what other modules use. */ -int32 secondswest; - -/* - * Get our timezone offset so we can give it to clients if the - * configuration file doesn't specify one. - */ -void -tzone_init() -{ -#ifdef SVR4 - /* XXX - Is this really SunOS specific? -gwr */ - secondswest = timezone; -#else /* SVR4 */ - struct timezone tzp; /* Time zone offset for clients */ - struct timeval tp; /* Time (extra baggage) */ - if (gettimeofday(&tp, &tzp) < 0) { - secondswest = 0; /* Assume GMT for lack of anything better */ - report(LOG_ERR, "gettimeofday: %s", get_errmsg()); - } else { - secondswest = 60L * tzp.tz_minuteswest; /* Convert to seconds */ - } -#endif /* SVR4 */ -} |