From 315054f4737a39489e0a14f3a92bff61f1592832 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 16 Jan 2015 06:40:24 +0000 Subject: Replace with and other less dirty headers where possible. Annotate lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) --- usr.sbin/rmt/rmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/rmt/rmt.c') diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c index 7e457121f71..28d31dd1c33 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmt.c,v 1.14 2013/12/03 00:20:03 deraadt Exp $ */ +/* $OpenBSD: rmt.c,v 1.15 2015/01/16 06:40:20 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -38,12 +38,12 @@ #include #include #include -#include #include #include #include #include #include +#include int tape = -1; @@ -51,7 +51,7 @@ char *record; int maxrecsize = -1; #define STRSIZE 64 -char device[MAXPATHLEN]; +char device[PATH_MAX]; char count[STRSIZE], mode[STRSIZE], pos[STRSIZE], op[STRSIZE]; char resp[BUFSIZ]; -- cgit v1.2.3