Mercurial > urweb
comparison src/c/request.c @ 2017:bcda3ae88677
Align to sizeof(void *) instead of fixed 4
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Wed, 28 May 2014 11:53:19 -0400 |
parents | c93fbd139732 |
children | 6add6d00ef5f |
comparison
equal
deleted
inserted
replaced
2016:3ed2ee0815d2 | 2017:bcda3ae88677 |
---|---|
210 } | 210 } |
211 } | 211 } |
212 } | 212 } |
213 | 213 |
214 | 214 |
215 typedef struct uw_rc { | 215 struct uw_rc { |
216 size_t path_copy_size, queryString_size; | 216 size_t path_copy_size, queryString_size; |
217 char *path_copy, *queryString; | 217 char *path_copy, *queryString; |
218 } *uw_request_context; | 218 }; |
219 | 219 |
220 uw_request_context uw_new_request_context(void) { | 220 uw_request_context uw_new_request_context(void) { |
221 uw_request_context r = malloc(sizeof(struct uw_rc)); | 221 uw_request_context r = malloc(sizeof(struct uw_rc)); |
222 r->path_copy_size = 0; | 222 r->path_copy_size = 0; |
223 r->queryString_size = 1; | 223 r->queryString_size = 1; |