diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-16 18:37:32 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-16 18:37:32 +0300 |
commit | a5ec437e91f90f25711c7e1b47b8238fdae6b103 (patch) | |
tree | 3d553a313c7facabccb23e829517540061b52759 | |
parent | 75eb52872d4c19eb7988e33f173f2763322ae8ff (diff) | |
download | magi-a5ec437e91f90f25711c7e1b47b8238fdae6b103.tar magi-a5ec437e91f90f25711c7e1b47b8238fdae6b103.tar.xz magi-a5ec437e91f90f25711c7e1b47b8238fdae6b103.zip |
[magi] Cosmetic fixes.
-rw-r--r-- | Makefile (renamed from makefile) | 0 | ||||
-rw-r--r-- | examples/Makefile (renamed from examples/makefile) | 7 | ||||
-rw-r--r-- | examples/append.c | 4 | ||||
-rw-r--r-- | examples/upload.c | 6 |
4 files changed, 11 insertions, 6 deletions
diff --git a/examples/makefile b/examples/Makefile index e3205aa..d93176b 100644 --- a/examples/makefile +++ b/examples/Makefile @@ -14,10 +14,15 @@ endif INCLUDE = -I ../src LFLAGS = -L.. -lmagi +MAGI = ../libmagi.a + default: $(EXAMPLES) -%: %.c +$(MAGI): + cd ..; $(MAKE) + +%: %.c $(MAGI) $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@ clean: diff --git a/examples/append.c b/examples/append.c index f0dfe2a..65caa33 100644 --- a/examples/append.c +++ b/examples/append.c @@ -30,10 +30,10 @@ void print_webpage() "<html xmlns='http://www.w3.org/1999/xhtml'>" "<head><title>Append to File</title></head>" "<body>" - "<form action='/cgi-bin/append' method='GET'>" + "<form action='/cgi-bin/append' method='get'><fieldset>" "<input type='text' name='addon' value='Whatever you want to add.'/>" "<input type='submit' value='Append'/>" - "</form>" + "</fieldset></form>" "</body>" "</html>" ); diff --git a/examples/upload.c b/examples/upload.c index 9dc1efd..1dc9659 100644 --- a/examples/upload.c +++ b/examples/upload.c @@ -53,12 +53,12 @@ void print_webpage() "<html xmlns='http://www.w3.org/1999/xhtml'>" "<head><title>Upload File</title></head>" "<body>" - "<form action='/cgi-bin/upload' method='POST' " - "enctype='multipart/form-data'>" + "<form action='/cgi-bin/upload' method='post' " + "enctype='multipart/form-data'><fieldset>" "<input type='text' name='name' value='filename'/>" "<input type='file' name='data'/>" "<input type='submit' value='Upload'/>" - "</form>" + "</fieldset></form>" "</body>" "</html>" ); |