]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: wurfl: address 3 build issues in the wurfl dummy library
authorWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 12:54:27 +0000 (14:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 12:59:08 +0000 (14:59 +0200)
Two of them were functions returning an string missing the return
statement and one is just the usual "set but not used".

contrib/wurfl/dummy-wurfl.c

index 8c7909d12199aa2cceca756793515d4348d03ced..0d5f068280fc198666b5b69586d06bf301c219dc 100644 (file)
@@ -71,7 +71,7 @@ wurfl_device_handle wurfl_lookup(wurfl_handle hwurfl, wurfl_header_retrieve_call
   const char *hvalue = header_retrieve_callback("User-Agent", header_retrieve_callback_data);
   // and on a non existing one
   hvalue = header_retrieve_callback("Non-Existing-Header", header_retrieve_callback_data);
-
+  (void)hvalue;
   return (void *) 0xdeffa;
 }
 
@@ -102,11 +102,11 @@ const char *wurfl_device_get_root_id(wurfl_device_handle hwurfldevice)
 
 const char *wurfl_device_get_original_useragent(wurfl_device_handle hwurfldevice)
 {
-
+  return "original_useragent";
 }
 const char *wurfl_device_get_normalized_useragent(wurfl_device_handle hwurfldevice)
 {
-
+  return "normalized_useragent";
 }
 int wurfl_device_is_actual_device_root(wurfl_device_handle hwurfldevice)
 {