aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-hreq.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-04 18:35:55 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-04 18:35:55 +0200
commit6b9b3b16ac738f99bddde3d7d375f9986bb1c09a (patch)
treeaaf4e66adfb1d19edc5f648aaa963cede8329b06 /src/afb-hreq.h
parent82adb27966eace72f810716c19c660efd7c8b15a (diff)
try to avoid unnecessary copy
Change-Id: I98cd69133ba3babb2719fad8c7e31c4dcaf1ae97 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.h')
-rw-r--r--src/afb-hreq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-hreq.h b/src/afb-hreq.h
index a8df015e..82e6b65a 100644
--- a/src/afb-hreq.h
+++ b/src/afb-hreq.h
@@ -73,9 +73,9 @@ extern struct AFB_clientCtx *afb_hreq_context(struct afb_hreq *hreq);
extern int afb_hreq_init_cookie(int port, const char *path, int maxage);
-extern void afb_hreq_reply_static(struct afb_hreq *hreq, unsigned status, size_t size, char *buffer, ...);
+extern void afb_hreq_reply_static(struct afb_hreq *hreq, unsigned status, size_t size, const char *buffer, ...);
-extern void afb_hreq_reply_copy(struct afb_hreq *hreq, unsigned status, size_t size, char *buffer, ...);
+extern void afb_hreq_reply_copy(struct afb_hreq *hreq, unsigned status, size_t size, const char *buffer, ...);
extern void afb_hreq_reply_free(struct afb_hreq *hreq, unsigned status, size_t size, char *buffer, ...);