You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/03/25 10:13:46 UTC

[incubator-nuttx-apps] branch master updated: candump.c: Must not extern optind, et al

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new abd444f  candump.c:  Must not extern optind, et al
abd444f is described below

commit abd444f9ce3ab83975215571656fef1cdcd3cbe2
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Wed Mar 24 21:33:46 2021 -0600

    candump.c:  Must not extern optind, et al
    
    optined, et al, are not longer simple globals variables (after incubator-nuttx PR 3170).  Redundantly externing them in application code now results in compilation errors.
---
 canutils/candump/candump.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/canutils/candump/candump.c b/canutils/candump/candump.c
index b040c15..7b3074c 100644
--- a/canutils/candump/candump.c
+++ b/canutils/candump/candump.c
@@ -111,8 +111,6 @@ const int canfd_on = 1;
 const char anichar[MAXANI] = {'|', '/', '-', '\\'};
 const char extra_m_info[4][4] = {"- -", "B -", "- E", "B E"};
 
-extern int optind, opterr, optopt;
-
 static volatile int running = 1;
 
 static void print_usage(char *prg)