ERROR_LOG(UG_NAME_ERR, "Failed to allocate memory");
return false;
}
- *buf[0] = '\0';
- strncpy(*buf, ipv6_address, strlen(ipv6_address) + 1);
+ snprintf(*buf, strlen(ipv6_address) + 1, "%s", ipv6_address);
} else {
+ int len = strlen(*buf);
if (!(*buf = (char *)realloc(*buf, strlen(*buf) + strlen(ipv6_address) + 5))) {
ERROR_LOG(UG_NAME_ERR, "Failed to realloc memory");
return false;
}
- strncat(*buf, "<br>", 5);
- strncat(*buf, ipv6_address, strlen(ipv6_address) + 1);
+ snprintf(*buf + len, len + strlen(ipv6_address) + 5, "<br>%s", ipv6_address);
}
return true;
static wifi_manager_h *wifi_handle = NULL;
-static struct wlan_connection current_item = { NULL, NULL, NULL };
-static struct wlan_connection next_item = { NULL, NULL, NULL };
+static struct wlan_connection current_item;
+static struct wlan_connection next_item;
static void wlan_connect_debug(wifi_manager_ap_h ap)
{
wifi_manager_ap_h *ap;
} ap_state_info_t;
-wlan_mgr_req_data_t scan_req_data;
+static wlan_mgr_req_data_t scan_req_data;
static void wlan_manager_register_cbs(void);
static void wlan_manager_deregister_cbs(void);
Elm_Object_Item *item_install_cert;
};
-struct _private_data g_pd;
+static struct _private_data g_pd;
extern genlist_info_t g_genlist_info[WIFI_GENLIST_STYLE_MAX];
extern content_size_info_t g_content_size_info;
static bool show_more = TRUE;
-wifi_emulator_sample_s wifi_samples[] = {
+static wifi_emulator_sample_s wifi_samples[] = {
{"datanetwork", WIFI_MANAGER_SECURITY_TYPE_WPA_PSK, 1},
{"ureadyinternet", WIFI_MANAGER_SECURITY_TYPE_EAP, 0},
{"uready", WIFI_MANAGER_SECURITY_TYPE_EAP, 1},
{"setup", WIFI_MANAGER_SECURITY_TYPE_NONE, 0},
{"Tizen", WIFI_MANAGER_SECURITY_TYPE_WPA2_PSK, 1},
};
-int wifi_sample_count = sizeof(wifi_samples) / sizeof(wifi_samples[0]);
+static int wifi_sample_count = sizeof(wifi_samples) / sizeof(wifi_samples[0]);
static void _hidden_button_callback(void* data, Evas_Object* obj, void* event_info);
static void viewer_manager_hidden_confirm_cleanup(void);
return det;
}
-static char *_gl_helper_content_get(void *data, Evas_Object *obj, const char *part)
+static Evas_Object* _gl_helper_content_get(void *data, Evas_Object *obj, const char *part)
{
retvm_if(NULL == manager_object, NULL);
wifi_object* devpkr_app_state = NULL;
-Ecore_Event_Handler* event_handler = NULL;
+static Ecore_Event_Handler* event_handler = NULL;
static void __idle_lock_state_change_cb(keynode_t *node, void *user_data);