projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: tap array subscript has type char warning
[urcu.git]
/
tests
/
utils
/
tap.c
diff --git
a/tests/utils/tap.c
b/tests/utils/tap.c
index 6acab66c841aea101d8e247cba60ef9a33101af7..3e384d6077c74fe2943a24afe90091d733c81b1b 100644
(file)
--- a/
tests/utils/tap.c
+++ b/
tests/utils/tap.c
@@
-24,7
+24,6
@@
* SUCH DAMAGE.
*/
* SUCH DAMAGE.
*/
-#define _GNU_SOURCE
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
@@
-95,7
+94,8
@@
_gen_result(int ok, const char *func, char *file, unsigned int line,
if(local_test_name) {
name_is_digits = 1;
for(c = local_test_name; *c != '\0'; c++) {
if(local_test_name) {
name_is_digits = 1;
for(c = local_test_name; *c != '\0'; c++) {
- if(!isdigit(*c) && !isspace(*c)) {
+ if(!isdigit((unsigned char)*c) &&
+ !isspace((unsigned char)*c)) {
name_is_digits = 0;
break;
}
name_is_digits = 0;
break;
}
This page took
0.024477 seconds
and
4
git commands to generate.