Skip to content

Commit 53f0d91

Browse files
committed
Bug#32107056 warning C4273: 'strupr': inconsistent dll linkage [#12]
storage\ndb\test\src\getarg.cpp(74,1): warning C4273: 'strupr': inconsistent dll linkage Change-Id: I2093f7319d202a42ecaaa9bc6a8967ffc4e14295
1 parent e8f15f0 commit 53f0d91

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

storage/ndb/test/src/getarg.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,6 @@ extern char *__progname;
6969
#define FALSE 0
7070
#endif
7171

72-
char *
73-
strupr(char *str)
74-
{
75-
char *s;
76-
77-
for(s = str; *s; s++)
78-
*s = toupper(*s);
79-
return str;
80-
}
81-
8272
static size_t
8373
print_arg (char *string, size_t len, int mdoc, int longp, struct getargs *arg)
8474
{
@@ -115,6 +105,16 @@ print_arg (char *string, size_t len, int mdoc, int longp, struct getargs *arg)
115105
}
116106

117107
#ifdef GETARGMANDOC
108+
static char *
109+
strupr(char *str)
110+
{
111+
char *s;
112+
113+
for(s = str; *s; s++)
114+
*s = toupper(*s);
115+
return str;
116+
}
117+
118118
static void
119119
mandoc_template(struct getargs *args,
120120
size_t num_args,

0 commit comments

Comments
 (0)