diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2016-03-15 15:42:36 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2016-03-15 16:12:49 +0900 |
commit | 7c8a6704a82c26d1c50a6de558b8c63b330717cb (patch) | |
tree | c3a877667221972061e7514a6c742e8448385158 | |
parent | 03112ff2183888462b9b0715e0e39d8d2abed7f3 (diff) | |
download | libsoup-7c8a6704a82c26d1c50a6de558b8c63b330717cb.tar.gz libsoup-7c8a6704a82c26d1c50a6de558b8c63b330717cb.tar.bz2 libsoup-7c8a6704a82c26d1c50a6de558b8c63b330717cb.zip |
Remove build warningsubmit/tizen/20160418.070112
Change-Id: I142d5e1be47c0170a494bd6f03d67ac6ec1d9f95
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rwxr-xr-x | libsoup/soup-cache.c | 7 | ||||
-rwxr-xr-x | libsoup/soup-message.c | 4 | ||||
-rwxr-xr-x | libsoup/soup-socket.c | 5 |
3 files changed, 5 insertions, 11 deletions
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c index bd09b162..c679ea8c 100755 --- a/libsoup/soup-cache.c +++ b/libsoup/soup-cache.c @@ -348,10 +348,10 @@ static guint soup_cache_entry_update_corrected_initial_age (SoupCacheEntry *entry) { SoupDate *soup_date; - char *age, *date; + const char *age, *date; time_t date_value, apparent_age, corrected_received_age, age_value = 0; - date = soup_message_headers_get (entry->headers, "Date"); + date = soup_message_headers_get_one (entry->headers, "Date"); if (date) { soup_date = soup_date_new_from_string (date); @@ -1790,9 +1790,6 @@ soup_cache_load (SoupCache *cache) GHashTableIter iter; gpointer value; #endif -#if ENABLE(TIZEN_TV_CHECKING_DELETED_ENTRY_FILE) - GFile *file = NULL; -#endif #if ENABLE(TIZEN_USER_AGENT_CHECK_IN_CACHE) const char *ua; #endif diff --git a/libsoup/soup-message.c b/libsoup/soup-message.c index 401a47c7..0e5156dc 100755 --- a/libsoup/soup-message.c +++ b/libsoup/soup-message.c @@ -2226,13 +2226,13 @@ gboolean soup_message_is_from_session_restore (SoupMessage *msg) { char *target_field = "Cache-Control"; char *target_value = "max-stale=86400"; - char *value = NULL; + const char *value = NULL; if (!msg) return FALSE; // This criteria to decide session restore can be changed according to WebKit. - value = soup_message_headers_get (msg->request_headers, target_field); + value = soup_message_headers_get_one (msg->request_headers, target_field); if (value && !strcmp (value, target_value)) { TIZEN_LOGD ("msg[%p] return TRUE", msg); return TRUE; diff --git a/libsoup/soup-socket.c b/libsoup/soup-socket.c index 15402bb7..0e0b123d 100755 --- a/libsoup/soup-socket.c +++ b/libsoup/soup-socket.c @@ -749,7 +749,7 @@ soup_socket_class_init (SoupSocketClass *socket_class) #if ENABLE(TIZEN_TV_CLIENT_CERTIFICATE) || ENABLE(TIZEN_TV_DYNAMIC_CERTIFICATE_LOADING) static GTlsCertificate * -soup_make_client_certificate(gchar* cert_file, gchar* key_file) +soup_make_client_certificate(const gchar* cert_file, const gchar* key_file) { GTlsCertificate* cert = NULL; GError* pGError = NULL; @@ -832,9 +832,6 @@ soup_get_client_certificate(SoupSocket *sock, const char* ssl_host, gchar*** cer #if ENABLE(TIZEN_TV_DYNAMIC_CERTIFICATE_LOADING) static GTlsCertificate *soup_get_dynamic_client_certificate(SoupSocket *sock, const char* ssl_host) { - SoupSocket *soupSock = sock; - GTlsCertificate* dynamic_cert = NULL; - GError* pGError = NULL; const char* get_certpath = NULL; g_signal_emit (sock, signals[DYNAMIC_CERTIFICATEPATH], 0, ssl_host, &get_certpath); |