Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ftpd Convert from __attribute__(foo) to the __foo eq...



details:   https://anonhg.NetBSD.org/src/rev/f73effab23a3
branches:  trunk
changeset: 785575:f73effab23a3
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Mar 21 05:53:01 2013 +0000

description:
Convert from __attribute__(foo) to the __foo equiv in <sys/cdefs.h>

diffstat:

 libexec/ftpd/extern.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r b1225befa042 -r f73effab23a3 libexec/ftpd/extern.h
--- a/libexec/ftpd/extern.h     Thu Mar 21 04:57:38 2013 +0000
+++ b/libexec/ftpd/extern.h     Thu Mar 21 05:53:01 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.62 2011/08/29 20:41:06 joerg Exp $        */
+/*     $NetBSD: extern.h,v 1.63 2013/03/21 05:53:01 lukem Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -118,7 +118,7 @@
 char   *conffilename(const char *);
 void   count_users(void);
 void   cprintf(FILE *, const char *, ...)
-           __attribute__((__format__(__printf__, 2, 3)));
+           __printflike(2, 3);
 void   cwd(const char *);
 FILE   *dataconn(const char *, off_t, const char *);
 void   delete(const char *);
@@ -155,7 +155,7 @@
 void   renamecmd(const char *, const char *);
 char   *renamefrom(const char *);
 void   reply(int, const char *, ...)
-           __attribute__((__format__(__printf__, 2, 3)));
+           __printflike(2, 3);
 void   retrieve(const char *[], const char *);
 void   send_file_list(const char *);
 void   show_chdir_messages(int);
@@ -295,7 +295,7 @@
        LLT              sendlowat;     /* SO_SNDLOWAT size */
 };
 
-extern void            ftp_loop(void) __attribute__ ((noreturn));
+__dead extern void             ftp_loop(void);
 extern void            ftp_handle_line(char *);
 
 #ifndef        GLOBAL



Home | Main Index | Thread Index | Old Index