Commit Graph

7 Commits

Author SHA1 Message Date
Ed Schouten
98e695d7fd Rework time handling.
After I made the previous commit, I noticed the code does some things it
shouldn't. It casts a struct timeval to a time_t, assuming tv_sec is the
first member. Also, we are not interested in microseconds, so it is
better to just call time(NULL).

MFC after:	1 month
2012-09-01 10:56:15 +00:00
Ed Schouten
21fe0af7aa Remove unneeded struct timezone.
We're only interested in a timestamp -- not the timezone.
2012-09-01 10:48:38 +00:00
Ulrich Spörlein
cffd173436 lmcconfig(8): bump to WARNS=3, fix typo in usage while here
Slight style(9) improvments
 - function definitions
 - sort #include
2010-12-20 19:08:15 +00:00
Ulrich Spörlein
057747a467 Fix type used to hold fgetc(3) output, this should help arm and powerpc
which have char == unsigned char
2010-12-20 19:08:07 +00:00
Ulrich Spörlein
4f1ccb4be0 Remove useless conditional.
`vga' cannot be less than 0x3f when reaching the check.

Coverity Prevent:	CID 5196
2010-12-20 19:07:48 +00:00
Warner Losh
6e9ee60152 Include string.h for strncpy prototype
Include strings.h for bcopy and bzero prototype
2009-02-19 19:45:49 +00:00
Scott Long
6fa40729c8 Add the lmcconfig tool for controlling the lmc driver. Add man pages and
glue.

Submitted by: David Boggs
2005-10-03 07:09:41 +00:00