This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 60c1b64 libc/getopt: Remove GETOPT_INIITIALIZER macro
60c1b64 is described below
commit 60c1b64747deb76ecdb0a2b551acc7febd3c67eb
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun May 9 19:32:46 2021 +0800
libc/getopt: Remove GETOPT_INIITIALIZER macro
since nobody reference it
Signed-off-by: Xiang Xiao <[email protected]>
---
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 f155648..9eb7b3a 100644
--- a/include/nuttx/lib/getopt.h
+++ b/include/nuttx/lib/getopt.h
@@ -30,20 +30,6 @@
#include <stdbool.h>
/****************************************************************************
- * 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 750a596..cd9e481 100644
--- a/libs/libc/unistd/lib_getopt_common.c
+++ b/libs/libc/unistd/lib_getopt_common.c
@@ -30,15 +30,6 @@
#include "unistd.h"
/****************************************************************************
- * Pre-processor Definitions
- ****************************************************************************/
-
-#undef optarg
-#undef opterr
-#undef optind
-#undef optopt
-
-/****************************************************************************
* Prive Functions
****************************************************************************/