summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2018-06-17 15:00:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2018-06-17 15:00:30 +0000
commit3cae3ec11d739ccd352f7c35f492264a68354d60 (patch)
treeff8813fb9e77303fcdb41ff95fa7999d00001390 /usr.bin
parent5e36d9b134d45dccc1fd4135f1da5a5f30d1b657 (diff)
use size_t
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/finger/extern.h4
-rw-r--r--usr.bin/finger/util.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/finger/extern.h b/usr.bin/finger/extern.h
index ed8e21abfba..e908d84103a 100644
--- a/usr.bin/finger/extern.h
+++ b/usr.bin/finger/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.9 2014/11/19 22:07:13 millert Exp $ */
+/* $OpenBSD: extern.h,v 1.10 2018/06/17 15:00:29 deraadt Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@ int demi_print(char *, int);
void enter_lastlog(PERSON *);
PERSON *enter_person(struct passwd *);
void enter_where(struct utmp *, PERSON *);
-void expandusername(char *, char *, char *, int);
+void expandusername(char *, char *, char *, size_t);
PERSON *find_person(char *);
int hash(char *);
void lflag_print(void);
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c
index b57351b63bb..fda7d18948a 100644
--- a/usr.bin/finger/util.c
+++ b/usr.bin/finger/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.33 2018/06/17 14:58:27 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.34 2018/06/17 15:00:29 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -153,7 +153,7 @@ match(struct passwd *pw, char *user)
/* inspired by usr.sbin/sendmail/util.c::buildfname */
void
-expandusername(char *gecos, char *login, char *buf, int buflen)
+expandusername(char *gecos, char *login, char *buf, size_t buflen)
{
char *p, *bp;