aboutsummaryrefslogtreecommitdiff
path: root/libexec/talkd/table.c
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2003-04-03 05:13:27 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2003-04-03 05:13:27 +0000
commit02a0965ef64123ce8c752d08176f2ec702d4aee6 (patch)
treeea700d011536a0f7f4ef18463e1769cfb052ce7e /libexec/talkd/table.c
parent55ad402a8f53bd62c8b85106cf307298f0c952d9 (diff)
downloadsrc-02a0965ef64123ce8c752d08176f2ec702d4aee6.tar.gz
src-02a0965ef64123ce8c752d08176f2ec702d4aee6.zip
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
Notes
Notes: svn path=/head/; revision=112998
Diffstat (limited to 'libexec/talkd/table.c')
-rw-r--r--libexec/talkd/table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/talkd/table.c b/libexec/talkd/table.c
index 28e8d8ef411c..001e7d41db7a 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;