Source-Changes-HG archive

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

[src/trunk]: src/sbin/restore restore(8): Mark fail_dirtmp __dead to fix clan...



details:   https://anonhg.NetBSD.org/src/rev/e4521f5f6cee
branches:  trunk
changeset: 379863:e4521f5f6cee
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jun 23 14:22:08 2021 +0000

description:
restore(8): Mark fail_dirtmp __dead to fix clang build.

diffstat:

 sbin/restore/dirs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 502a589cf527 -r e4521f5f6cee sbin/restore/dirs.c
--- a/sbin/restore/dirs.c       Wed Jun 23 07:11:41 2021 +0000
+++ b/sbin/restore/dirs.c       Wed Jun 23 14:22:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dirs.c,v 1.52 2021/06/19 13:56:35 christos Exp $       */
+/*     $NetBSD: dirs.c,v 1.53 2021/06/23 14:22:08 riastradh Exp $      */
 
 /*
  * Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)dirs.c     8.7 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: dirs.c,v 1.52 2021/06/19 13:56:35 christos Exp $");
+__RCSID("$NetBSD: dirs.c,v 1.53 2021/06/23 14:22:08 riastradh Exp $");
 #endif
 #endif /* not lint */
 
@@ -135,7 +135,7 @@ static void          putent(struct direct *);
 static void             rst_seekdir(RST_DIR *, long, long);
 static long             rst_telldir(RST_DIR *);
 static struct direct   *searchdir(ino_t, char *);
-static void             fail_dirtmp(char *);
+static void             fail_dirtmp(char *) __dead;
 
 /*
  *     Extract directory contents, building up a directory structure
@@ -833,7 +833,7 @@ cleanup(void)
  * Print out information about the failure to save directory,
  * extended attribute, and mode information.
  */
-static void
+static void __dead
 fail_dirtmp(char *filename)
 {
        warn("%s: cannot write directory database", filename);



Home | Main Index | Thread Index | Old Index