From 60c1b64747deb76ecdb0a2b551acc7febd3c67eb Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 9 May 2021 19:32:46 +0800 Subject: [PATCH] libc/getopt: Remove GETOPT_INIITIALIZER macro since nobody reference it Signed-off-by: Xiang Xiao --- include/nuttx/lib/getopt.h | 14 -------------- libs/libc/unistd/lib_getopt_common.c | 9 --------- 2 files changed, 23 deletions(-) diff --git a/include/nuttx/lib/getopt.h b/include/nuttx/lib/getopt.h index f155648b4fd..9eb7b3abc6b 100644 --- a/include/nuttx/lib/getopt.h +++ b/include/nuttx/lib/getopt.h @@ -29,20 +29,6 @@ #include -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#define GETOPT_INIITIALIZER() = \ - { \ - NULL, \ - 0, \ - 1, \ - '?' \ - NULL, \ - false \ - } - /**************************************************************************** * Public Types ****************************************************************************/ diff --git a/libs/libc/unistd/lib_getopt_common.c b/libs/libc/unistd/lib_getopt_common.c index 750a596f730..cd9e481260d 100644 --- a/libs/libc/unistd/lib_getopt_common.c +++ b/libs/libc/unistd/lib_getopt_common.c @@ -29,15 +29,6 @@ #include "unistd.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#undef optarg -#undef opterr -#undef optind -#undef optopt - /**************************************************************************** * Prive Functions ****************************************************************************/