Skip to content

Commit

Permalink
Fix duplicate definition in ocprint
Browse files Browse the repository at this point in the history
re: Issue Unidata#1725

The program ncdump/ocprint has a duplicate definition of
the variable ocdebug. Convert to an extern definition
since it is define in oc2 code.
  • Loading branch information
DennisHeimbigner committed May 12, 2020
1 parent e47a2a3 commit 461fb44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions ncdump/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ noinst_PROGRAMS += ocprint
ocprint_SOURCES = ocprint.c
endif

noinst_PROGRAMS += ncdumpchunks
ncdumpchunks_SOURCES = ncdumpchunks.c

# This is the man page.
man_MANS = ncdump.1 nccopy.1

Expand Down
2 changes: 1 addition & 1 deletion ncdump/ocprint.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ char* optarg;
/*Mnemonic*/
#define TOPLEVEL 1

int ocdebug;
EXTERNL int ocdebug;

static OCerror ocstat;
static OClink glink;
Expand Down

0 comments on commit 461fb44

Please sign in to comment.