Skip to content

Commit

Permalink
Bug#32107056 warning C4273: 'strupr': inconsistent dll linkage [#12]
Browse files Browse the repository at this point in the history
storage\ndb\test\src\getarg.cpp(74,1): warning C4273: 'strupr': inconsistent dll linkage

Change-Id: I2093f7319d202a42ecaaa9bc6a8967ffc4e14295
  • Loading branch information
zmur committed Feb 16, 2021
1 parent ecf14a5 commit bed2094
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions storage/ndb/test/src/getarg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@ extern char *__progname;
#define FALSE 0
#endif

char *
strupr(char *str)
{
char *s;

for(s = str; *s; s++)
*s = toupper(*s);
return str;
}

static size_t
print_arg (char *string, size_t len, int mdoc, int longp, struct getargs *arg)
{
Expand Down Expand Up @@ -115,6 +105,16 @@ print_arg (char *string, size_t len, int mdoc, int longp, struct getargs *arg)
}

#ifdef GETARGMANDOC
static char *
strupr(char *str)
{
char *s;

for(s = str; *s; s++)
*s = toupper(*s);
return str;
}

static void
mandoc_template(struct getargs *args,
size_t num_args,
Expand Down

0 comments on commit bed2094

Please sign in to comment.