summaryrefslogtreecommitdiff
path: root/xinit.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2013-03-02 11:32:37 +0100
committerMatthieu Herrb <matthieu.herrb@laas.fr>2013-03-02 11:32:37 +0100
commit0018c7fae33d283961b6baf20657beaff8218420 (patch)
treeac368445e5b29e1cd3cd8de6ca8a67a9ba497a04 /xinit.c
parentcd11ab120b65ec201fa1b09a1186118ca546026e (diff)
parentef3d1d64958c51d7716445574bb7e5653aab714d (diff)
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to 'xinit.c')
-rw-r--r--xinit.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/xinit.c b/xinit.c
index 46f717a..5310101 100644
--- a/xinit.c
+++ b/xinit.c
@@ -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;