diff options
author | 2017-04-27 21:28:00 +0000 | |
---|---|---|
committer | 2017-04-27 21:28:00 +0000 | |
commit | 4da9c9403d767a4f41d169607721e3d68a3b85bd (patch) | |
tree | d03f7bbd2dea0084f3e6f07a7624bc8bb16ddc06 | |
parent | challenge is an array, not a pointer, therefore cannot be NULL. (diff) | |
download | wireguard-openbsd-4da9c9403d767a4f41d169607721e3d68a3b85bd.tar.xz wireguard-openbsd-4da9c9403d767a4f41d169607721e3d68a3b85bd.zip |
Change len arg of getidle() from size_t to int since it is used as
a length parameter to a "%.*s" printf format. Quiets a compiler
warning (both gcc and clang).
-rw-r--r-- | libexec/rpc.rusersd/rusers_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c index a4849235c1a..1f4831d4767 100644 --- a/libexec/rpc.rusersd/rusers_proc.c +++ b/libexec/rpc.rusersd/rusers_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rusers_proc.c,v 1.25 2016/08/16 04:48:04 tedu Exp $ */ +/* $OpenBSD: rusers_proc.c,v 1.26 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, int len) { char devname[PATH_MAX]; struct stat st; |