Mercurial > gftp.yaz
changeset 338:0f34108f27b7
2003-12-10 Brian Masney <masneyb@gftp.org>
* lib/gftp.h src/text/gftp-text.h src/gtk/gftp-gtk.h - added
GFTP_LOG_FUNCTION_ATTRIBUTES that is only defined when compiled
against gcc. When this is set, it will specify the function is
printf() type function so that extra checks can be done by the
compiler. This is to fix problems with older Sun compilers.
author | masneyb |
---|---|
date | Sat, 13 Dec 2003 20:52:14 +0000 |
parents | 5f9d5aee0c1c |
children | 542a3e8708f9 |
files | ChangeLog lib/gftp.h src/gtk/gftp-gtk.h src/text/gftp-text.h |
diffstat | 4 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Dec 13 20:36:39 2003 +0000 +++ b/ChangeLog Sat Dec 13 20:52:14 2003 +0000 @@ -1,4 +1,10 @@ 2003-12-10 Brian Masney <masneyb@gftp.org> + * lib/gftp.h src/text/gftp-text.h src/gtk/gftp-gtk.h - added + GFTP_LOG_FUNCTION_ATTRIBUTES that is only defined when compiled + against gcc. When this is set, it will specify the function is + printf() type function so that extra checks can be done by the + compiler. This is to fix problems with older Sun compilers. + * src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c - check for a timeout from the remote server when refreshing the directory listing and changing directores. If it did, reconnect to the server. @@ -1834,7 +1840,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.184 2003/12/13 20:36:37 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.185 2003/12/13 20:52:12 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/lib/gftp.h Sat Dec 13 20:36:39 2003 +0000 +++ b/lib/gftp.h Sat Dec 13 20:52:14 2003 +0000 @@ -133,6 +133,12 @@ #endif +#ifdef __GNUC__ +# define GFTP_LOG_FUNCTION_ATTRIBUTES __attribute__((format(printf, 3, 4))) +#else +# define GFTP_LOG_FUNCTION_ATTRIBUTES +#endif + /* Server types (used by FTP protocol from SYST command) */ #define GFTP_DIRTYPE_UNIX 1 #define GFTP_DIRTYPE_EPLF 2
--- a/src/gtk/gftp-gtk.h Sat Dec 13 20:36:39 2003 +0000 +++ b/src/gtk/gftp-gtk.h Sat Dec 13 20:52:14 2003 +0000 @@ -291,7 +291,7 @@ void ftp_log ( gftp_logging_level level, gftp_request * request, const char *string, - ... ) __attribute__((format(printf, 3, 4))); + ... ) GFTP_LOG_FUNCTION_ATTRIBUTES; void refresh ( gftp_window_data * wdata );
--- a/src/text/gftp-text.h Sat Dec 13 20:36:39 2003 +0000 +++ b/src/text/gftp-text.h Sat Dec 13 20:52:14 2003 +0000 @@ -53,7 +53,7 @@ /* gftp-text.h */ void gftp_text_log ( gftp_logging_level level, gftp_request * request, - const char *string, ... ) __attribute__((format(printf, 3, 4))); + const char *string, ... ) GFTP_LOG_FUNCTION_ATTRIBUTES; int gftp_text_open ( gftp_request * request, char *command, gpointer *data );