Module Name:    src
Committed By:   joerg
Date:           Wed Jan  7 20:50:36 UTC 2015

Modified Files:
        src/usr.sbin/mtree: specspec.c

Log Message:
st_nlink on Linux is not int, so add an explicit cast.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/mtree/specspec.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.sbin/mtree/specspec.c
diff -u src/usr.sbin/mtree/specspec.c:1.2 src/usr.sbin/mtree/specspec.c:1.3
--- src/usr.sbin/mtree/specspec.c:1.2	Fri Oct  5 01:27:29 2012
+++ src/usr.sbin/mtree/specspec.c	Wed Jan  7 20:50:36 2015
@@ -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 @@ shownode(NODE *n, int f, char const *pat
 	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)

Reply via email to