cleanup unused haeders 46/69346/2
authorYoungjae Shin <yj99.shin@samsung.com>
Fri, 13 May 2016 01:08:41 +0000 (10:08 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Fri, 13 May 2016 02:00:58 +0000 (19:00 -0700)
Change-Id: I4b84d0b6f165257ed6246f73f20ecd8c4e0b8e5c

16 files changed:
common/ic-ioty-types.c
common/ic-utils.c
lib/icl-device.c
lib/icl-ioty-ocprocess.c
lib/icl-ioty-types.c
lib/icl-ioty.c
lib/icl-lite-resource.c
lib/icl-presence.c
lib/icl-remote-resource-caching.c
lib/icl-remote-resource-crud.c
lib/icl-remote-resource-monitoring.c
lib/icl-remote-resource.c
lib/icl-representation.c
lib/icl-resource.c
lib/icl-state.c
lib/icl-types.c

index 60bec4b99b790ae50e2df182e388e1d0c24faaf8..8233202705c7c6db1d59180b485d6281ddddcf7a 100644 (file)
@@ -15,7 +15,6 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#include <errno.h>
 #include <limits.h>
 
 #include <octypes.h>
index 7cdeb358f91b0e83e81a3b596c383c7730d4b6c1..03d14d277e816d1871cc6ef5b696973149dd7deb 100644 (file)
@@ -55,7 +55,6 @@ char* ic_utils_strdup(const char *src)
 
        RETV_IF(NULL == src, NULL);
 
-       errno = 0;
        dest = strdup(src);
        if (NULL == dest) {
                ERR("strdup() Fail(%d)", errno);
index 39b94a3b9722bba24918b21e25b24d6e00659e4e..b8fc8f70f9f14e196b1e9f20a14621c7d8ab53ed 100644 (file)
  * limitations under the License.
  */
 #include <stdio.h>
-#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <glib.h>
 
 #include "iotcon.h"
 #include "ic-utils.h"
index c2a2a7db684ba977c5fd33b14dbbaf3073551d6e..a99401627c5b836a291003266d624f8e7e28f0d2 100644 (file)
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 #include <stdlib.h>
+#include <errno.h>
 #include <sys/prctl.h>
 
 #include <ocstack.h>
index de596dae22c55168e31010d68e8b9e066a335481..811ad75ab4bb896359c083664df1a7e1eccfba14 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <stdlib.h>
-#include <stdint.h>
+#include <errno.h>
 #include <octypes.h>
 #include <ocstack.h>
 #include <ocpayload.h>
index b0a882d6a356c7b5feadf4db0fc480c08a232d16..78324f4a480c8bfc0e79af33de961efda0b2edf7 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <errno.h>
 #include <pthread.h>
 #include <glib.h>
 #include <octypes.h>
index 2f042e7181a44f2b1d921b79477928b384bff596..fcb5d63e7e146e7870986997bb78349645afc23e 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <glib.h>
 
 #include "iotcon-types.h"
 #include "ic-utils.h"
index 27125559dceb4778079af4f05d53ef449329c70b..a9cbe57fa85879e109a077b3bd2ecc2f2dec818e 100644 (file)
  * limitations under the License.
  */
 #include <stdio.h>
-#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <glib.h>
 
 #include "iotcon-types.h"
 #include "ic-utils.h"
index a58c98edef7b973124677dfaafeb26dbaa108239..c1adbb1cf8a8a67e0ea9fb74cd305d54318c1e50 100644 (file)
  * limitations under the License.
  */
 #include <stdio.h>
-#include <stdint.h>
 #include <stdlib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <glib.h>
 
 #include "iotcon.h"
 #include "ic-utils.h"
index 52475344a16c952ba8041a3a2731e7ab5a3cffa5..2f7bcab284cda6730f9c94ba0939ab0a3bd28157 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <glib.h>
-#include <gio/gio.h>
-
 #include "iotcon.h"
 #include "ic-utils.h"
 #include "icl.h"
+#include "icl-ioty.h"
 #include "icl-options.h"
-#include "icl-representation.h"
 #include "icl-response.h"
+#include "icl-representation.h"
 #include "icl-remote-resource.h"
-#include "icl-ioty.h"
 
 API int iotcon_remote_resource_get(iotcon_remote_resource_h resource,
                iotcon_query_h query, iotcon_remote_resource_response_cb cb, void *user_data)
index acf48ed4d0462c27ab49a50122f98167e0242757..2e947528828c1d94be70a799a098f4a888ecb517 100644 (file)
@@ -15,9 +15,6 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <glib.h>
 
 #include "iotcon.h"
 #include "icl.h"
index 0e5a99a04f0e247565bdde528dcdb68304ff8684..7ddf2f6f93a55d36ded486f7bc4f08561342cfca 100644 (file)
  * limitations under the License.
  */
 #include <stdio.h>
-#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
-#include <inttypes.h>
 #include <errno.h>
-#include <glib.h>
 
 #include "iotcon-types.h"
 #include "ic-utils.h"
index 2bddd709a6d641a2241e5dcd1f6f6fa8d34f0e2e..0bbb62d38b538530bbcded27a62cdc21aed92aa6 100644 (file)
@@ -50,7 +50,6 @@ iotcon_representation_h icl_representation_ref(iotcon_representation_h repr)
 
 API int iotcon_representation_create(iotcon_representation_h *ret_repr)
 {
-       errno = 0;
        iotcon_representation_h repr;
 
        RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
index 023cc32016c5a438f77457afe46e8968211789cd..bdbc5f84d283498416ed528b1b45890ea3aab5c9 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <inttypes.h>
-#include <errno.h>
 #include <glib.h>
 #include <tizen_type.h>
 
index fad91553e1aa2ad8389dff32f8a3b9c9c114e995..e06e0cbef4020762d1224076cf2f6b4ff008cc8f 100644 (file)
@@ -12,8 +12,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 #include <stdlib.h>
+#include <errno.h>
 #include <glib.h>
 
 #include "iotcon-types.h"
@@ -37,7 +37,6 @@ iotcon_state_h icl_state_ref(iotcon_state_h state)
 
 API int iotcon_state_create(iotcon_state_h *ret_state)
 {
-       errno = 0;
        iotcon_state_h state;
 
        RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
index 9cd6a510052eb73d9c10d908d49e3ad32c99cd59..1b145232e5d266df50146237d64372e11e9bf150 100644 (file)
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 #include <stdlib.h>
+#include <errno.h>
 
 #include "iotcon.h"
 #include "icl.h"