Removed compiler warning - implicit declaration of a function 31/32731/1
authorAnkur <ankur29.garg@samsung.com>
Tue, 23 Dec 2014 08:51:37 +0000 (14:21 +0530)
committerAnkur <ankur29.garg@samsung.com>
Tue, 23 Dec 2014 08:51:41 +0000 (14:21 +0530)
-Needed to include #include <string.h> before using the string functions.
-Already submitted a similar change.
-Some of the files here, which were showing warning, were already fixed.
But, seems some other change has removed the #include <string.h>. So, I am resubmitting it.
-Remaining files - earlier string functions were not being used.

Change-Id: I8d1c98de81ee39308343f42034c414501e60d653

test/src/gyro.c
test/src/light.c
test/src/pressure.c
test/src/proxi.c
test/src/temperature.c

index b74d98d052907f94928cb440a7ea5f2e99bab4b3..915971bf885cac78d361fd9fa13d8fc963f31479 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index 454d5c2a5c765532135605fea3ec581d389a0ea5..e2b6e694f072838617ff84d53da8d09f5484992a 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index a92ad591e8f8bad8c568b0344ce5455997f00dec..12f5734205a2dda8c509def3a1d5dc4da569d091 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index 70185bdac3df18d4b3499d24af29944bb0cd465b..4d3092d513924fb35610f7b30776743d5e70998a 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index ffdb2e99258256e39aaa7749616a9ce80ea68983..3f852c80f7830651624fcf6a5f069dda118f5625 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;