int rv = 0;
connection_profile_iterator_h iter;
connection_profile_type_e type;
- //connection_profile_state_e state;
- connection_profile_h profile;
+ /* connection_profile_state_e state; */
+ connection_profile_h profile = NULL;
char *ipaddr = NULL;
char *name = NULL;
if (wifi_initialize() != WIFI_ERROR_NONE) {
_ERR("wifi_initialize failed.");
- event_cb(EVENT_DATA_INIT_FAIL_WIRELESS, cb_data);
+ if (event_cb)
+ event_cb(EVENT_DATA_INIT_FAIL_WIRELESS, cb_data);
free(priv);
return NULL;
.style = STYLE_STATUS_BTN,
.disabled = EINA_FALSE,
.favorite = EINA_FALSE,
- .status = _get_clock_mode,
+ /*.status = _get_clock_mode,*/
.selected = _selected,
.focused = _focused,
.selected_menu = _selected_menu,
.title = STR_SLEEP_TIMER,
.style = STYLE_STATUS_BTN,
.disabled = EINA_FALSE,
- .status = _get_sleep_timer,
+ /*.status = _get_sleep_timer,*/
.selected = _selected,
.focused = _focused,
.selected_menu = _selected_menu,
.title = STR_WAKEUP_TIMER,
.style = STYLE_TEXTBLOCK_BTN,
.disabled = EINA_FALSE,
- .status = _get_wakeup_timer,
+ /*.status = _get_wakeup_timer,*/
.selected = _selected,
.focused = _focused,
.selected_menu = _selected_menu,
.title = STR_SUBTITLE,
.style = STYLE_STATUS_BTN,
.disabled = EINA_FALSE,
- .status = _get_subtitle,
+ /*.status = _get_subtitle,*/
.selected = _selected,
.focused = _focused,
.selected_menu = _selected_menu,
return NULL;
}
- _tab_order_restore();
+ //_tab_order_restore();
priv->base = utils_add_layout(win, GRP_VIEW_BASE, EINA_TRUE);
if (!priv->base) {
const char *buf = NULL;
bool ignore = false;
int val_priv = 0, val_input = 0;
+ int candidate = 0;
if (!priv) {
_ERR("invalid data");
return;
}
+ if (NULL == text || NULL == *text) {
+ _ERR("invalid text");
+ return;
+ }
+
buf = elm_entry_entry_get(entry);
if (!buf)
return;
}
/* Check range (0 to 255) */
- if (text && *text) {
- int candidate = 0;
- val_priv = atoi(buf);
- val_input = atoi(*text);
- candidate = val_priv * 10 + val_input;
-
- if (0 > val_priv || 255 < val_priv
- || 0 > candidate || 255 < candidate) {
- /* Ignore input value */
- *text = NULL;
- return;
- }
+ val_priv = atoi(buf);
+ val_input = atoi(*text);
+ candidate = val_priv * 10 + val_input;
+
+ if (0 > val_priv || 255 < val_priv
+ || 0 > candidate || 255 < candidate) {
+ /* Ignore input value */
+ *text = NULL;
+ return;
}
/* Update done btn state */