Module Name: src
Committed By: joerg
Date: Tue Nov 4 23:02:14 UTC 2014
Modified Files:
src/usr.bin/config: sem.c
Log Message:
nv_num is not a dev_t, so add explicit cast for the sake of
-Wconversion.
To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/usr.bin/config/sem.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/config/sem.c
diff -u src/usr.bin/config/sem.c:1.68 src/usr.bin/config/sem.c:1.69
--- src/usr.bin/config/sem.c:1.68 Tue Nov 4 23:00:35 2014
+++ src/usr.bin/config/sem.c Tue Nov 4 23:02:14 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: sem.c,v 1.68 2014/11/04 23:00:35 joerg Exp $ */
+/* $NetBSD: sem.c,v 1.69 2014/11/04 23:02:14 joerg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: sem.c,v 1.68 2014/11/04 23:00:35 joerg Exp $");
+__RCSID("$NetBSD: sem.c,v 1.69 2014/11/04 23:02:14 joerg Exp $");
#include <sys/param.h>
#include <ctype.h>
@@ -964,7 +964,7 @@ resolve(struct nvlist **nvp, const char
name, what, nv->nv_str);
return (1);
}
- nv->nv_num = makedev(maj, unit * maxpartitions + part);
+ nv->nv_num = (long long)makedev(maj, unit * maxpartitions + part);
}
nv->nv_name = dev->d_name;