Skip to content

Commit

Permalink
apply astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and PKEuS committed Dec 15, 2012
1 parent 5350697 commit 9f11c01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion democlient/democlient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
6 changes: 4 additions & 2 deletions tools/times.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9f11c01

Please sign in to comment.