Remove the definition of MIN/MAX

use the macro in sys/params.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-08-16 01:18:05 +08:00 committed by Petro Karashchenko
parent 054cf3b1cb
commit 856416540c
2 changed files with 3 additions and 8 deletions

View File

@ -25,16 +25,14 @@
* Included Files * Included Files
****************************************************************************/ ****************************************************************************/
#include <sys/params.h>
#include "alt1250_daemon.h" #include "alt1250_daemon.h"
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#ifndef MIN
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
/**************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
****************************************************************************/ ****************************************************************************/

View File

@ -27,6 +27,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/params.h>
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h> #include <stddef.h>
@ -50,10 +51,6 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#ifndef MAX
# define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
#define OPTARG_TO_VALUE(value, type, base) \ #define OPTARG_TO_VALUE(value, type, base) \
do \ do \
{ \ { \