diff --git a/democlient/democlient.cpp b/democlient/democlient.cpp index 99b91f4db..aeba258e0 100644 --- a/democlient/democlient.cpp +++ b/democlient/democlient.cpp @@ -74,7 +74,7 @@ int main() int len = std::min(1 + atoi(lenstr), (int)(sizeof(data) - 2)); fgets(data, len, stdin); } else { - const char *s = getenv("QUERY_STRING"); + const char *s = getenv("QUERY_STRING"); strncpy(data, s?s:"", sizeof(data)-2); } diff --git a/tools/times.c b/tools/times.c index 8ecbb6169..8c1d8a63c 100644 --- a/tools/times.c +++ b/tools/times.c @@ -2,13 +2,15 @@ #include #include -char *replace(char *str, char before, char after) { +char *replace(char *str, char before, char after) +{ while (strchr(str,before)) *strchr(str,before) = after; return str; } -int main() { +int main() +{ FILE *f = fopen("times.log", "rt"); if (!f) return 1;