From 23f3f8592c21ee58b0ac040736b5b766d52de193 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 13 Nov 2019 19:16:21 +0300 Subject: Cosmetical changes. --- examples/append.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'examples/append.c') diff --git a/examples/append.c b/examples/append.c index b8aa1cf..b6ee217 100644 --- a/examples/append.c +++ b/examples/append.c @@ -8,9 +8,9 @@ void handle_request() { struct magi_request request; if (magi_cgi(&request, 0, 0)) { - struct magi_field *a = magi_field_list_get(request.fields, "addon"); + struct magi_field * a = magi_field_list_get(request.fields, "addon"); if (a && a->data) { - FILE *file = fopen("file_to_append", "a"); + FILE * file = fopen("file_to_append", "a"); fputs(a->data, file); fclose(file); } @@ -25,22 +25,20 @@ void print_preamble() void print_webpage() { - puts( - "" - "" - "Append to File" - "" - "
" - "" - "" - "
" - "" - "" - ); + puts("" + "" + "Append to File" + "" + "
" + "" + "" + "
" + "" + ""); } -int main(int argc, char const *argv[]) +int main(int argc, char const * argv[]) { handle_request(); print_preamble(); -- cgit v1.2.3