Subject: bin/23995: remove unused MAX macros (apmd/quot)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 01/05/2004 23:33:03
>Number: 23995
>Category: bin
>Synopsis: remove unused MAX macros (apmd/quot)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 05 23:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Jeff Ito
>Release: 1.6ZG
>Organization:
>Environment:
NetBSD 1.6ZG Fri Dec 5 15:13:48 EST 2003
>Description:
apmd.c revision 1.23 removed the need for the MAX macro
likewise in quot.c revision 1.18
>How-To-Repeat:
N/A
>Fix:
Index: apmd.c
===================================================================
RCS file: /cvs/nbsd/src/usr.sbin/apmd/apmd.c,v
retrieving revision 1.26
diff -u -r1.26 apmd.c
--- apmd.c 24 Jun 2003 09:41:34 -0000 1.26
+++ apmd.c 5 Jan 2004 23:20:15 -0000
@@ -60,7 +60,6 @@
#include "pathnames.h"
#include "apm-proto.h"
-#define MAX(a,b) (a > b ? a : b)
#define TRUE 1
#define FALSE 0
Index: quot.c
===================================================================
RCS file: /cvs/nbsd/src/usr.sbin/quot/quot.c,v
retrieving revision 1.19
diff -u -r1.19 quot.c
--- quot.c 30 May 2003 00:17:27 -0000 1.19
+++ quot.c 5 Jan 2004 23:29:34 -0000
@@ -530,7 +530,6 @@
exit(1);
}
-#define max(a,b) MAX((a),(b))
/*
* Sanity checks for old file systems.
* Stolen from <sys/lib/libsa/ufs.c>
>Release-Note:
>Audit-Trail:
>Unformatted: