diff options
author | Adam Chlipala <adamc@csail.mit.edu> | 2016-06-15 11:55:37 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@csail.mit.edu> | 2016-06-15 11:55:37 -0400 |
commit | 6dad7c645d8fdb7b7237c89ff7b34e90adbb86b1 (patch) | |
tree | 4dc4d265c551a12ca52f87a75d3f219bdd3ae322 /src/c/request.c | |
parent | 4a95c63b1f9778215c515b8c4f66d0c7672c214f (diff) |
Rename memmem() to urweb_memmem(), to avoid unintentionally picking up prototype from libc
Diffstat (limited to 'src/c/request.c')
-rw-r--r-- | src/c/request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/request.c b/src/c/request.c index cad84cb2..a7f23851 100644 --- a/src/c/request.c +++ b/src/c/request.c @@ -16,7 +16,7 @@ #define MAX_RETRIES 5 -void *memmem(const void *b1, size_t len1, const void *b2, size_t len2); +void *urweb_memmem(const void *b1, size_t len1, const void *b2, size_t len2); static int try_rollback(uw_context ctx, int will_retry, void *logger_data, uw_logger log_error) { int r = uw_rollback(ctx, will_retry); @@ -418,7 +418,7 @@ request_result uw_request(uw_request_context rc, uw_context ctx, } } - part = memmem(after_sub_headers, body + body_len - after_sub_headers, boundary, boundary_len); + part = urweb_memmem(after_sub_headers, body + body_len - after_sub_headers, boundary, boundary_len); if (!part) { log_error(logger_data, "Missing boundary after multipart payload\n"); return FAILED; |