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 b74d98d..915971b 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index 454d5c2..e2b6e69 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index a92ad59..12f5734 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index 70185bd..4d3092d 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;
 
index ffdb2e9..3f852c8 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdbool.h>
 #include <sensor_common.h>
 #include <unistd.h>
+#include <string.h>
 
 static GMainLoop *mainloop;