diff options
author | jmallett <jmallett@FreeBSD.org> | 2003-04-03 05:13:27 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2003-04-03 05:13:27 +0000 |
commit | eba71bcf69b1a44d8ff32c0aa0c0400d682b5dec (patch) | |
tree | ea700d011536a0f7f4ef18463e1769cfb052ce7e /libexec/talkd/table.c | |
parent | 5b2b2811a19544037b626ef44e598691b3b2f525 (diff) | |
download | FreeBSD-src-eba71bcf69b1a44d8ff32c0aa0c0400d682b5dec.zip FreeBSD-src-eba71bcf69b1a44d8ff32c0aa0c0400d682b5dec.tar.gz |
MFp4 @27667: WARNS=5 cleanup on i386.
Remove the unused FILE\ *tf from print_mesg args, and the
bogus passing in of an uninitialised FILE* for it.
Call a timeval 'now' instead of 'clock' due to shadowing.
Remove a nested localtime declaration.
Make the delete invite argument match the ID type, u_int32_t.
Use const for pointers to const items.
Cast to long where printing as such.
Include netinet/in.h for htonl/htons.
Reviewed by: imp
Diffstat (limited to 'libexec/talkd/table.c')
-rw-r--r-- | libexec/talkd/table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/talkd/table.c b/libexec/talkd/table.c index 28e8d8e..001e7d4 100644 --- a/libexec/talkd/table.c +++ b/libexec/talkd/table.c @@ -50,6 +50,7 @@ static const char rcsid[] = #include <sys/param.h> #include <sys/time.h> #include <sys/socket.h> +#include <netinet/in.h> #include <protocols/talkd.h> #include <stdio.h> #include <stdlib.h> @@ -198,7 +199,7 @@ new_id(void) * Delete the invitation with id 'id_num' */ int -delete_invite(int id_num) +delete_invite(u_int32_t id_num) { TABLE_ENTRY *ptr; |