added __attribute__ ((format (printf)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1707 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -93,8 +93,16 @@ void enc(char*);
|
||||
int auth_read(int, void*, int);
|
||||
int auth_write(int, void*, int);
|
||||
|
||||
void auth_vprintf(const char *fmt, va_list ap);
|
||||
void auth_printf(const char *fmt, ...);
|
||||
void auth_vprintf(const char *fmt, va_list ap)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (printf, 1, 0)))
|
||||
#endif
|
||||
;
|
||||
void auth_printf(const char *fmt, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (printf, 1, 2)))
|
||||
#endif
|
||||
;
|
||||
|
||||
void new_ftp_command(char *command);
|
||||
|
||||
|
@@ -65,10 +65,18 @@ int ftpd_pclose(FILE *);
|
||||
FILE *ftpd_popen(char *, char *, int, int);
|
||||
char *getline(char *, int);
|
||||
void logwtmp(char *, char *, char *);
|
||||
void lreply(int, const char *, ...);
|
||||
void lreply(int, const char *, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (printf, 2, 3)))
|
||||
#endif
|
||||
;
|
||||
void makedir(char *);
|
||||
void nack(char *);
|
||||
void nreply(const char *, ...);
|
||||
void nreply(const char *, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (printf, 1, 2)))
|
||||
#endif
|
||||
;
|
||||
void pass(char *);
|
||||
void passive(void);
|
||||
void perror_reply(int, char *);
|
||||
@@ -76,10 +84,18 @@ void pwd(void);
|
||||
void removedir(char *);
|
||||
void renamecmd(char *, char *);
|
||||
char *renamefrom(char *);
|
||||
void reply(int, const char *, ...);
|
||||
void reply(int, const char *, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (printf, 2, 3)))
|
||||
#endif
|
||||
;
|
||||
void retrieve(char *, char *);
|
||||
void send_file_list(char *);
|
||||
void setproctitle(const char *, ...);
|
||||
void setproctitle(const char *, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (printf, 1, 2)))
|
||||
#endif
|
||||
;
|
||||
void statcmd(void);
|
||||
void statfilecmd(char *);
|
||||
void do_store(char *, char *, int);
|
||||
|
@@ -1373,7 +1373,7 @@ sizecmd(char *filename)
|
||||
if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode))
|
||||
reply(550, "%s: not a plain file.", filename);
|
||||
else
|
||||
reply(213, "%qu", stbuf.st_size);
|
||||
reply(213, "%lu", (unsigned long)stbuf.st_size);
|
||||
break; }
|
||||
case TYPE_A: {
|
||||
FILE *fin;
|
||||
|
@@ -1542,6 +1542,13 @@ fatal(char *s)
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
static void
|
||||
int_reply(int, char *, const char *, va_list)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (printf, 3, 0)))
|
||||
#endif
|
||||
;
|
||||
|
||||
static void
|
||||
int_reply(int n, char *c, const char *fmt, va_list ap)
|
||||
{
|
||||
|
Reference in New Issue
Block a user