Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mtree st_nlink on Linux is not int, so add an expli...
details: https://anonhg.NetBSD.org/src/rev/63f98c1ee438
branches: trunk
changeset: 805603:63f98c1ee438
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jan 07 20:50:36 2015 +0000
description:
st_nlink on Linux is not int, so add an explicit cast.
diffstat:
usr.sbin/mtree/specspec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4d7d4191d02e -r 63f98c1ee438 usr.sbin/mtree/specspec.c
--- a/usr.sbin/mtree/specspec.c Wed Jan 07 20:42:01 2015 +0000
+++ b/usr.sbin/mtree/specspec.c Wed Jan 07 20:50:36 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: specspec.c,v 1.2 2012/10/05 01:27:29 christos Exp $ */
+/* $NetBSD: specspec.c,v 1.3 2015/01/07 20:50:36 joerg Exp $ */
/*-
* Copyright (c) 2003 Poul-Henning Kamp
@@ -31,7 +31,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: specspec.c,v 1.2 2012/10/05 01:27:29 christos Exp $");
+__RCSID("$NetBSD: specspec.c,v 1.3 2015/01/07 20:50:36 joerg Exp $");
#include <err.h>
#include <grp.h>
@@ -73,7 +73,7 @@
if (f & F_MODE)
printf(" mode=%o", n->st_mode);
if (f & F_NLINK)
- printf(" nlink=%d", n->st_nlink);
+ printf(" nlink=%d", (int)n->st_nlink);
if (f & F_SIZE)
printf(" size=%jd", (intmax_t)n->st_size);
if (f & F_UID)
Home |
Main Index |
Thread Index |
Old Index