diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-09-22 11:03:31 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-09-22 11:03:31 +0300 |
commit | f3f9c925687d262547d0e203ad3216fa6f46fd5d (patch) | |
tree | 2a66d8fc2a443f6406fd06161faf930086400995 | |
parent | 3d27a4f8f8de8d5ec1d59b24ea8607f7ce450fe4 (diff) | |
download | magi-f3f9c925687d262547d0e203ad3216fa6f46fd5d.tar magi-f3f9c925687d262547d0e203ad3216fa6f46fd5d.tar.xz magi-f3f9c925687d262547d0e203ad3216fa6f46fd5d.zip |
.
-rw-r--r-- | example/append.c (renamed from examples/append.c) | 0 | ||||
-rw-r--r-- | example/cookie.c (renamed from examples/cookie.c) | 0 | ||||
-rw-r--r-- | example/makefile (renamed from examples/makefile) | 4 | ||||
-rw-r--r-- | example/upload.c (renamed from examples/upload.c) | 0 | ||||
-rw-r--r-- | src/field.h | 6 |
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/append.c b/example/append.c index f0dfe2a..f0dfe2a 100644 --- a/examples/append.c +++ b/example/append.c diff --git a/examples/cookie.c b/example/cookie.c index 8f4018b..8f4018b 100644 --- a/examples/cookie.c +++ b/example/cookie.c diff --git a/examples/makefile b/example/makefile index ecd7bc9..de6b310 100644 --- a/examples/makefile +++ b/example/makefile @@ -11,14 +11,14 @@ else CFLAGS += -O3 endif -INCLUDE = ../src +INCLUDE = -I ../src LFLAGS = -L.. -lmagi default: $(EXAMPLES) %: %.c - $(CC) $(CFLAGS) -I $(INCLUDE) $< $(LFLAGS) -o $@ + $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@ clean: rm -f $(EXAMPLES) diff --git a/examples/upload.c b/example/upload.c index 9dc1efd..9dc1efd 100644 --- a/examples/upload.c +++ b/example/upload.c diff --git a/src/field.h b/src/field.h index 170dc7c..a6fcff3 100644 --- a/src/field.h +++ b/src/field.h @@ -6,9 +6,9 @@ * Form Field */ struct magi_field { - char *name; /* name: free(name) is valid. */ - char *data; /* data: free(data) is valid. */ - int len; /* Length of data. */ + char *name; /* name: free(name) is valid. */ + char *data; /* data: free(data) is valid. */ + int len; /* Length of data. */ struct magi_param_list *params; /* Only used if field is for file. */ }; |