diff options
author | 2017-01-20 03:47:31 +0000 | |
---|---|---|
committer | 2017-01-20 03:47:31 +0000 | |
commit | 4b162b99989b3936c64ddae99a354f46c59955d1 (patch) | |
tree | 2196bb431b186e8dcaa84561857c0aceb55ed267 /usr.sbin/rbootd/utils.c | |
parent | Split error() into error() and warn() so that error() can be marked (diff) | |
download | wireguard-openbsd-4b162b99989b3936c64ddae99a354f46c59955d1.tar.xz wireguard-openbsd-4b162b99989b3936c64ddae99a354f46c59955d1.zip |
In "%.*s" the * takes (int). gcc whines if you try to use the result
of pointer subtraction without a cast. So cast those expressions
to (int).
Switch one local variable to the same type as the parameter it is
compared to.
ok deraadt@ guenther@ beck@
Diffstat (limited to 'usr.sbin/rbootd/utils.c')
-rw-r--r-- | usr.sbin/rbootd/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rbootd/utils.c b/usr.sbin/rbootd/utils.c index 13b321b2beb..dc38cc1fd72 100644 --- a/usr.sbin/rbootd/utils.c +++ b/usr.sbin/rbootd/utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utils.c,v 1.16 2016/08/27 01:50:07 guenther Exp $ */ +/* $OpenBSD: utils.c,v 1.17 2017/01/20 03:47:31 krw Exp $ */ /* $NetBSD: utils.c,v 1.5.2.1 1995/11/14 08:45:46 thorpej Exp $ */ /* @@ -227,7 +227,7 @@ GetEtherAddr(u_int8_t *addr) void DspFlnm(u_int size, char *flnm) { - int i; + u_int i; (void) fprintf(DbgFp, "\n\t\tFile Name (%u): <", size); for (i = 0; i < size; i++) |