From 4da9c9403d767a4f41d169607721e3d68a3b85bd Mon Sep 17 00:00:00 2001 From: millert Date: Thu, 27 Apr 2017 21:28:00 +0000 Subject: [PATCH] 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). --- libexec/rpc.rusersd/rusers_proc.c | 4 ++-- 1 file 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; -- 2.20.1