Module Name: src
Committed By: joerg
Date: Sat May 4 10:21:28 UTC 2013
Modified Files:
src/usr.bin/vndcompress: vndcompress.c
Log Message:
__printflike for vwarnx_ss, __dead for err_ss and errx_ss.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/vndcompress/vndcompress.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/vndcompress/vndcompress.c
diff -u src/usr.bin/vndcompress/vndcompress.c:1.8 src/usr.bin/vndcompress/vndcompress.c:1.9
--- src/usr.bin/vndcompress/vndcompress.c:1.8 Fri May 3 23:28:15 2013
+++ src/usr.bin/vndcompress/vndcompress.c Sat May 4 10:21:27 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: vndcompress.c,v 1.8 2013/05/03 23:28:15 riastradh Exp $ */
+/* $NetBSD: vndcompress.c,v 1.9 2013/05/04 10:21:27 joerg Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: vndcompress.c,v 1.8 2013/05/03 23:28:15 riastradh Exp $");
+__RCSID("$NetBSD: vndcompress.c,v 1.9 2013/05/04 10:21:27 joerg Exp $");
#include <sys/endian.h>
@@ -116,11 +116,11 @@ static void compress_maybe_checkpoint(st
static void compress_checkpoint(struct compress_state *);
static void compress_exit(struct compress_state *);
static ssize_t read_block(int, void *, size_t);
-static void err_ss(int, const char *);
-static void errx_ss(int, const char *, ...) __printflike(2, 3);
+static void err_ss(int, const char *) __dead;
+static void errx_ss(int, const char *, ...) __printflike(2, 3) __dead;
static void warn_ss(const char *);
static void warnx_ss(const char *, ...) __printflike(1, 2);
-static void vwarnx_ss(const char *, va_list);
+static void vwarnx_ss(const char *, va_list) __printflike(1, 0);
/*
* Compression entry point.