fix warnings

This commit is contained in:
Vincent Sanders 2012-10-18 10:40:53 +01:00
parent f18bbd48c7
commit a1d052399a

View File

@ -1188,7 +1188,7 @@ static void browser_window_update_favicon(hlcache_handle *c,
}
/** window callback errorcode handling */
void
static void
browser_window_callback_errorcode(hlcache_handle *c,
struct browser_window *bw,
nserror code)
@ -1201,11 +1201,6 @@ browser_window_callback_errorcode(hlcache_handle *c,
message = messages_get("OK");
break;
case NSERROR_UNKNOWN:
/**< Unknown error */
message = messages_get("Unknown");
break;
case NSERROR_NOMEM:
/**< Memory exhaustion */
message = messages_get("NoMemory");
@ -1251,6 +1246,11 @@ browser_window_callback_errorcode(hlcache_handle *c,
message = messages_get("NeedData");
break;
case NSERROR_ENCODING_CHANGE:
/**< The character set encoding change was unhandled */
message = messages_get("EncodingChanged");
break;
case NSERROR_BAD_PARAMETER:
/**< Bad Parameter */
message = messages_get("BadParameter");
@ -1281,6 +1281,12 @@ browser_window_callback_errorcode(hlcache_handle *c,
message = messages_get("BadURL");
break;
default:
case NSERROR_UNKNOWN:
/**< Unknown error */
message = messages_get("Unknown");
break;
}
browser_window_set_status(bw, message);