Catch more uses of MIN().

This commit is contained in:
Alfred Perlstein 2003-02-02 13:30:00 +00:00
parent c023201af1
commit 04738e99b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110234
5 changed files with 0 additions and 12 deletions

View File

@ -1362,7 +1362,6 @@ hifn_init_dma(struct hifn_softc *sc)
static u_int
hifn_write_command(struct hifn_command *cmd, u_int8_t *buf)
{
#define MIN(a,b) ((a)<(b)?(a):(b))
u_int8_t *buf_pos;
hifn_base_command_t *base_cmd;
hifn_mac_command_t *mac_cmd;
@ -1456,7 +1455,6 @@ hifn_write_command(struct hifn_command *cmd, u_int8_t *buf)
}
return (buf_pos - buf);
#undef MIN
}
static int

View File

@ -149,7 +149,6 @@
#include <sys/selinfo.h>
#include <sys/poll.h>
#include <sys/bus.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#ifdef HIRESTIME
#include <sys/time.h>

View File

@ -1099,10 +1099,6 @@ unp_init(void)
LIST_INIT(&unp_shead);
}
#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
static int
unp_internalize(controlp, td)
struct mbuf **controlp;

View File

@ -99,9 +99,6 @@ struct ngd_softc {
char nodename[NG_NODELEN + 1];
} ngd_softc;
/* helper definition */
#define MIN(a, b) ((a) < (b) ? (a) : (b))
/* the per connection receiving queue maximum */
#define NGD_QUEUE_SIZE (1024*10)

View File

@ -66,8 +66,6 @@
#ifdef UFS_EXTATTR
#define MIN(a,b) (((a)<(b))?(a):(b))
static MALLOC_DEFINE(M_UFS_EXTATTR, "ufs_extattr", "ufs extended attribute");
static int ufs_extattr_sync = 0;