IOT-2539 fix int-conversion warning 85/22185/2
authorGeorge Nash <george.nash@intel.com>
Wed, 2 Aug 2017 23:17:56 +0000 (16:17 -0700)
committerRick Bell <richard.s.bell@intel.com>
Wed, 6 Sep 2017 23:51:41 +0000 (23:51 +0000)
On linux pthread_t is not a pointer type so
assigning it as NULL is an error. pthread_t should be
assigned using the functions like pthread_create which
is already done.

Change-Id: I55559a3ed3d4de82dd4863b1ee6e0ce11dd1726b
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21739
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
(cherry picked from commit 2dc503e6569871651fe19f430bfd59a301102dc6)
Reviewed-on: https://gerrit.iotivity.org/gerrit/22185

service/easy-setup/sampleapp/enrollee/linux/enrolleewifi.c

index c2f5737..3aa0cb2 100644 (file)
@@ -32,7 +32,7 @@
 #define TAG "ENROLLEE_SAMPLE"
 
 void *listeningFunc(void *);
-pthread_t thread_handle = NULL;
+pthread_t thread_handle;
 
 /**
  * Secure Virtual Resource database for Iotivity Server