diff options
Diffstat (limited to 'src/lib/action_process_upload.c')
-rw-r--r-- | src/lib/action_process_upload.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/action_process_upload.c b/src/lib/action_process_upload.c index d67b60a1..33221486 100644 --- a/src/lib/action_process_upload.c +++ b/src/lib/action_process_upload.c | |||
@@ -51,8 +51,9 @@ struct UploadAction | |||
51 | * function we are to call for upload data | 51 | * function we are to call for upload data |
52 | * @param request the request for which we are to process | 52 | * @param request the request for which we are to process |
53 | * upload data | 53 | * upload data |
54 | * @return #MHD_SC_OK on success | ||
54 | */ | 55 | */ |
55 | static void | 56 | static enum MHD_StatusCode |
56 | upload_action (void *cls, | 57 | upload_action (void *cls, |
57 | struct MHD_Request *request) | 58 | struct MHD_Request *request) |
58 | { | 59 | { |
@@ -60,6 +61,7 @@ upload_action (void *cls, | |||
60 | 61 | ||
61 | (void) ua; | 62 | (void) ua; |
62 | // FIXME: implement! | 63 | // FIXME: implement! |
64 | return -1; | ||
63 | } | 65 | } |
64 | 66 | ||
65 | 67 | ||
@@ -79,11 +81,11 @@ MHD_action_process_upload (MHD_UploadCallback uc, | |||
79 | 81 | ||
80 | if (NULL == (ua = malloc (sizeof (struct UploadAction)))) | 82 | if (NULL == (ua = malloc (sizeof (struct UploadAction)))) |
81 | return NULL; | 83 | return NULL; |
82 | ua->action = &upload_action; | 84 | ua->action.action = &upload_action; |
83 | ua->action_cls = ua; | 85 | ua->action.action_cls = ua; |
84 | ua->uc = uc; | 86 | ua->uc = uc; |
85 | ua->uc_cls = uc_cls; | 87 | ua->uc_cls = uc_cls; |
86 | return ua; | 88 | return &ua->action; |
87 | } | 89 | } |
88 | 90 | ||
89 | 91 | ||