Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

apply astyle

  • Loading branch information...
commit 9f11c0145066b140544b8d2102be30a23560d095 1 parent 5350697
@XhmikosR XhmikosR authored PKEuS committed
Showing with 5 additions and 3 deletions.
  1. +1 −1  democlient/democlient.cpp
  2. +4 −2 tools/times.c
View
2  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);
}
View
6 tools/times.c
@@ -2,13 +2,15 @@
#include <string.h>
#include <stdlib.h>
-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;
Please sign in to comment.
Something went wrong with that request. Please try again.