Mercurial > audlegacy-plugins
changeset 936:c9fe8b112bb2 trunk
[svn] - fix a ton of warnings
author | nenolod |
---|---|
date | Thu, 12 Apr 2007 10:58:04 -0700 |
parents | fd9843dafb51 |
children | c11425915fcb |
files | ChangeLog src/curl/Makefile src/curl/curl.c |
diffstat | 3 files changed, 34 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Apr 12 10:51:15 2007 -0700 +++ b/ChangeLog Thu Apr 12 10:58:04 2007 -0700 @@ -1,3 +1,10 @@ +2007-04-12 17:51:15 +0000 Alexandr Orlov <alxorlov@pochta.ru> + revision [1998] + Update russian translation. + trunk/po/ru.po | 1103 +++++++++++++++++++++++++++++---------------------------- + 1 file changed, 576 insertions(+), 527 deletions(-) + + 2007-04-12 17:47:23 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [1996] - fix warnings with -Wunsigned -Wextra
--- a/src/curl/Makefile Thu Apr 12 10:51:15 2007 -0700 +++ b/src/curl/Makefile Thu Apr 12 10:58:04 2007 -0700 @@ -13,6 +13,12 @@ CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(BEEP_DEFINES) $(CURL_CFLAGS) -I../../intl -I../.. -Wextra -Wuninitialized +CFLAGS += -Wpointer-arith -Wimplicit -Wnested-externs -Wcast-align \ +-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes \ +-Wmissing-declarations -W -Wno-unused -Wshadow -Wmissing-noreturn \ +-Wundef -Wpacked -Wnested-externs -Wbad-function-cast -Wredundant-decls \ +-Wfloat-equal -Wformat=2 -Wdisabled-optimization -pedantic + OBJECTS = ${SOURCES:.c=.o} include ../../mk/objective.mk
--- a/src/curl/curl.c Thu Apr 12 10:51:15 2007 -0700 +++ b/src/curl/curl.c Thu Apr 12 10:58:04 2007 -0700 @@ -26,6 +26,7 @@ #include <curl/curl.h> +#include <stdlib.h> #include <string.h> #define BUFFER_SIZE 256 * 1024 @@ -84,6 +85,24 @@ gchar *local_ip; }; +void curl_vfs_rewind_impl(VFSFile * file); +glong curl_vfs_ftell_impl(VFSFile * file); +gboolean curl_vfs_feof_impl(VFSFile * file); +gint curl_vfs_truncate_impl(VFSFile * file, glong size); +gchar *curl_vfs_metadata_impl(VFSFile * file, const gchar * field); +size_t curl_vfs_fwrite_impl(gconstpointer ptr, size_t size, + size_t nmemb, + VFSFile * file); +size_t curl_vfs_fread_impl(gpointer ptr, size_t size, + size_t nmemb, + VFSFile * file); +gint curl_vfs_fclose_impl(VFSFile * file); +gint curl_vfs_getc_impl(VFSFile *stream); +gint curl_vfs_ungetc_impl(gint c, VFSFile *stream); +gint curl_vfs_fseek_impl(VFSFile * file, glong offset, gint whence); +VFSFile *curl_vfs_fopen_impl(const gchar * path, + const gchar * mode); + VFSConstructor curl_const; /* TODO: @@ -210,7 +229,7 @@ { gchar *value = get_value(handle, size, ICY_METAINT); handle->icy_interval = atoi(value); - free(value); + g_free(value); if (DEBUG_HEADERS) g_print("Metadata interval: %d\n", handle->icy_interval); } @@ -272,7 +291,7 @@ if (match_inline(handle, i, TITLE_INLINE)) { if (handle->title) - free(handle->title); + g_free(handle->title); handle->title = get_inline_value(handle, i, TITLE_INLINE); if (DEBUG_ICY) g_print("Title: '%s'\n", handle->title);