diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-12-25 05:00:31 -0500 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-26 00:40:11 -0700 |
commit | 634aeeb9d58b01f9de6632a014a063ef0c4cf31e (patch) | |
tree | 70023dd2bcc12a3f96ec6f118d80e27411920531 /src/webserver/pages | |
parent | 113fcc4f0a7a0921e94bc415515dd4b393a29d60 (diff) | |
download | tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.gz tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.bz2 tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.xz tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.zip |
Used the "indent" C formatting program from GNU to do some clean ups
The command options used was:
-nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0
-di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl
Diffstat (limited to 'src/webserver/pages')
-rw-r--r-- | src/webserver/pages/about.c | 6 | ||||
-rw-r--r-- | src/webserver/pages/notdone.c | 7 | ||||
-rw-r--r-- | src/webserver/pages/sample.c | 34 |
3 files changed, 23 insertions, 24 deletions
diff --git a/src/webserver/pages/about.c b/src/webserver/pages/about.c index 2b0002a..b548da9 100644 --- a/src/webserver/pages/about.c +++ b/src/webserver/pages/about.c @@ -1,6 +1,6 @@ -void generate_about(int sock_in, char *query, char *ip) +void generate_about (int sock_in, char *query, char *ip) { //printf("%s", html_header("About")); - web_send(sock_in, html_header("About")); - web_send(sock_in, "<center>eAthena Web Server!</center>\n"); + web_send (sock_in, html_header ("About")); + web_send (sock_in, "<center>eAthena Web Server!</center>\n"); } diff --git a/src/webserver/pages/notdone.c b/src/webserver/pages/notdone.c index a6492e3..1fcd44b 100644 --- a/src/webserver/pages/notdone.c +++ b/src/webserver/pages/notdone.c @@ -1,5 +1,6 @@ -void generate_notdone(int sock_in, char *query, char *ip) +void generate_notdone (int sock_in, char *query, char *ip) { - web_send(sock_in, "<title>Not here!</title>\n"); - web_send(sock_in, "<h2><center>This page/feature is not done yet.</center>\n</h2>"); + web_send (sock_in, "<title>Not here!</title>\n"); + web_send (sock_in, + "<h2><center>This page/feature is not done yet.</center>\n</h2>"); } diff --git a/src/webserver/pages/sample.c b/src/webserver/pages/sample.c index be900a1..6a33dc0 100644 --- a/src/webserver/pages/sample.c +++ b/src/webserver/pages/sample.c @@ -1,24 +1,22 @@ - -void generate_sample(int sock_in, char *query, char *ip) +void generate_sample (int sock_in, char *query, char *ip) { - char *name = get_param(query, "name"); - - web_send(sock_in, "<title>SAMPLE</title>\n"); + char *name = get_param (query, "name"); + web_send (sock_in, "<title>SAMPLE</title>\n"); - //If a name was not entered... - if ( name == '\0' ) - { - web_send(sock_in, "<form action=\"/testing/\" method=\"GET\">\n"); - web_send(sock_in, "<input type=\"text\" name=\"name\">\n"); - web_send(sock_in, "<input type=\"submit\">\n"); - } - else - { - web_send(sock_in, "Your name is: "); - web_send(sock_in, get_param(query, "name")); - } -printf("OK!\n"); + //If a name was not entered... + if (name == '\0') + { + web_send (sock_in, "<form action=\"/testing/\" method=\"GET\">\n"); + web_send (sock_in, "<input type=\"text\" name=\"name\">\n"); + web_send (sock_in, "<input type=\"submit\">\n"); + } + else + { + web_send (sock_in, "Your name is: "); + web_send (sock_in, get_param (query, "name")); + } + printf ("OK!\n"); } |