From: millert Date: Thu, 27 Apr 2017 21:28:00 +0000 (+0000) Subject: Change len arg of getidle() from size_t to int since it is used as X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4da9c9403d767a4f41d169607721e3d68a3b85bd;p=openbsd 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). --- 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;