This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead. |
||
|---|---|---|
| .. | ||
| misc | ||
| cmd1.c | ||
| cmd2.c | ||
| cmd3.c | ||
| cmdtab.c | ||
| collect.c | ||
| def.h | ||
| edit.c | ||
| extern.h | ||
| fio.c | ||
| getname.c | ||
| glob.h | ||
| head.c | ||
| lex.c | ||
| list.c | ||
| mail.1 | ||
| main.c | ||
| Makefile | ||
| names.c | ||
| pathnames.h | ||
| popen.c | ||
| quit.c | ||
| rcv.h | ||
| send.c | ||
| strings.c | ||
| temp.c | ||
| tty.c | ||
| util.c | ||
| v7.local.c | ||
| vars.c | ||
| version.c | ||