aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-21 18:03:51 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-21 18:03:51 +0100
commit7c2a0b5d080742c1d85a48b261b6949d0ccd1f11 (patch)
tree10bfbdef6e7700646f793d1040ffefe2896f40ea
parent923ae026828a5cd325cb0dc658c78f50d029b1bf (diff)
improved use of const qualifier
Change-Id: I371bfb6fdbaec91c14c0f3e2f2a45952252f8e27
-rw-r--r--include/proto-def.h2
-rw-r--r--src/helper-api.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/proto-def.h b/include/proto-def.h
index ac4f21b9..df26ce1b 100644
--- a/include/proto-def.h
+++ b/include/proto-def.h
@@ -21,7 +21,7 @@
// helper-api
PUBLIC json_object* getPingTest(AFB_request *request);
-PUBLIC const char* getQueryValue (AFB_request * request, char *name);
+PUBLIC const char* getQueryValue (const AFB_request * request, const char *name);
PUBLIC int getQueryAll(AFB_request * request, char *query, size_t len);
PUBLIC AFB_PostHandle* getPostHandle (AFB_request *request);
PUBLIC json_object* getPostFile (AFB_request *request, AFB_PostItem *item, char* destination) ;
diff --git a/src/helper-api.c b/src/helper-api.c
index 77b013e3..5863e41d 100644
--- a/src/helper-api.c
+++ b/src/helper-api.c
@@ -57,7 +57,7 @@ PUBLIC json_object* getPingTest(AFB_request *request) {
// Helper to retrieve argument from connection
-PUBLIC const char* getQueryValue(AFB_request * request, char *name) {
+PUBLIC const char* getQueryValue(const AFB_request * request, const char *name) {
const char *value;
value = MHD_lookup_connection_value(request->connection, MHD_GET_ARGUMENT_KIND, name);