aboutsummaryrefslogtreecommitdiff
path: root/src/util/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/strings.c')
-rw-r--r--src/util/strings.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index 3442a6bf7..4e7451283 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -754,9 +754,7 @@ GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t)
754 * As for msvcrt, use the wide variant, which always returns utf16 754 * As for msvcrt, use the wide variant, which always returns utf16
755 * (otherwise we'd have to detect current codepage or use W32API character 755 * (otherwise we'd have to detect current codepage or use W32API character
756 * set conversion routines to convert to UTF8). 756 * set conversion routines to convert to UTF8).
757 */ 757 */strftime (buf, sizeof(buf), "%a %b %d %H:%M:%S %Y", tp);
758
759 strftime (buf, sizeof(buf), "%a %b %d %H:%M:%S %Y", tp);
760 758
761 return buf; 759 return buf;
762} 760}
@@ -1052,9 +1050,9 @@ GNUNET_STRINGS_parse_uri (const char *path,
1052 pp_state += 1; 1050 pp_state += 1;
1053 continue; 1051 continue;
1054 } 1052 }
1055 if (! (((path[i] >= 'A') &&(path[i] <= 'Z') ) || 1053 if (! (((path[i] >= 'A') && (path[i] <= 'Z') ) ||
1056 ((path[i] >= 'a') &&(path[i] <= 'z') ) || 1054 ((path[i] >= 'a') && (path[i] <= 'z') ) ||
1057 ((path[i] >= '0') &&(path[i] <= '9') ) ||(path[i] == '+') || 1055 ((path[i] >= '0') && (path[i] <= '9') ) || (path[i] == '+') ||
1058 (path[i] == '-') || (path[i] == '.'))) 1056 (path[i] == '-') || (path[i] == '.')))
1059 end = 1; 1057 end = 1;
1060 break; 1058 break;
@@ -1898,6 +1896,7 @@ GNUNET_STRINGS_base64_encode (const void *in, size_t len, char **output)
1898 return ret; 1896 return ret;
1899} 1897}
1900 1898
1899
1901#define cvtfind(a) \ 1900#define cvtfind(a) \
1902 ((((a) >= 'A') && ((a) <= 'Z')) \ 1901 ((((a) >= 'A') && ((a) <= 'Z')) \
1903 ? (a) - 'A' \ 1902 ? (a) - 'A' \