diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2013-03-02 11:32:37 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2013-03-02 11:32:37 +0100 |
commit | 0018c7fae33d283961b6baf20657beaff8218420 (patch) | |
tree | ac368445e5b29e1cd3cd8de6ca8a67a9ba497a04 | |
parent | cd11ab120b65ec201fa1b09a1186118ca546026e (diff) | |
parent | ef3d1d64958c51d7716445574bb7e5653aab714d (diff) |
Merge remote-tracking branch 'origin/master' into obsd
-rw-r--r-- | xinit.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -114,10 +114,10 @@ static int ignorexio(Display *dpy); static void shutdown(void); static void set_environment(void); -static void Fatal(const char *fmt, ...); -static void Error(const char *fmt, ...); -static void Fatalx(const char *fmt, ...); -static void Errorx(const char *fmt, ...); +static void Fatal(const char *fmt, ...) _X_ATTRIBUTE_PRINTF(1,2) _X_NORETURN; +static void Error(const char *fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); +static void Fatalx(const char *fmt, ...) _X_ATTRIBUTE_PRINTF(1,2) _X_NORETURN; +static void Errorx(const char *fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); static void sigCatch(int sig) @@ -636,7 +636,7 @@ set_environment(void) Fatal("unable to set DISPLAY"); } -static void +static void _X_ATTRIBUTE_PRINTF(1,0) verror(const char *fmt, va_list ap) { fprintf(stderr, "%s: ", program); @@ -644,7 +644,7 @@ verror(const char *fmt, va_list ap) fprintf(stderr, ": %s\n", strerror(errno)); } -static void +static void _X_ATTRIBUTE_PRINTF(1,0) verrorx(const char *fmt, va_list ap) { fprintf(stderr, "%s: ", program); @@ -653,7 +653,6 @@ verrorx(const char *fmt, va_list ap) } static void -_X_NORETURN Fatal(const char *fmt, ...) { va_list ap; @@ -664,7 +663,6 @@ Fatal(const char *fmt, ...) } static void -_X_NORETURN Fatalx(const char *fmt, ...) { va_list ap; |