artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c760a79
)
Change len arg of getidle() from size_t to int since it is used as
author
millert
<millert@openbsd.org>
Thu, 27 Apr 2017 21:28:00 +0000
(21:28 +0000)
committer
millert
<millert@openbsd.org>
Thu, 27 Apr 2017 21:28:00 +0000
(21:28 +0000)
a length parameter to a "%.*s" printf format. Quiets a compiler
warning (both gcc and clang).
libexec/rpc.rusersd/rusers_proc.c
patch
|
blob
|
history
diff --git
a/libexec/rpc.rusersd/rusers_proc.c
b/libexec/rpc.rusersd/rusers_proc.c
index
a484923
..
1f4831d
100644
(file)
--- a/
libexec/rpc.rusersd/rusers_proc.c
+++ b/
libexec/rpc.rusersd/rusers_proc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rusers_proc.c,v 1.2
5 2016/08/16 04:48:04 tedu Exp $
*/
+/* $OpenBSD: rusers_proc.c,v 1.2
6 2017/04/27 21:28:00 millert Exp $
*/
/*-
* Copyright (c) 1993 John Brezak
@@
-71,7
+71,7
@@
extern int from_inetd;
FILE *ufp;
static long
-getidle(char *tty,
size_
t len)
+getidle(char *tty,
in
t len)
{
char devname[PATH_MAX];
struct stat st;