csdk: Fix implicit-function-declaration warning in ocrandom
authorGeorge Nash <george.nash@intel.com>
Thu, 9 Mar 2017 22:31:37 +0000 (14:31 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 13 Mar 2017 19:39:42 +0000 (19:39 +0000)
The -Wimplicit-function-delaration waring was caused by the
compiler not seeing the isxdigit function. The function is
part of the ctype.h header.

Change-Id: Idc3498110082c55554b4a032aa945ba0082a6f98
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17811
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/c_common/ocrandom/src/ocrandom.c

index fb9e4d1..0b84ddd 100644 (file)
@@ -58,6 +58,7 @@
 #include <stdio.h>
 #include <stdbool.h>
 #include <assert.h>
+#include <ctype.h>
 
 #define OC_MIN(A,B) ((A)<(B)?(A):(B))