Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config nv_num is not a dev_t, so add explicit cast f...



details:   https://anonhg.NetBSD.org/src/rev/be4466257547
branches:  trunk
changeset: 333454:be4466257547
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Nov 04 23:02:14 2014 +0000

description:
nv_num is not a dev_t, so add explicit cast for the sake of
-Wconversion.

diffstat:

 usr.bin/config/sem.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7e98df957e7d -r be4466257547 usr.bin/config/sem.c
--- a/usr.bin/config/sem.c      Tue Nov 04 23:01:23 2014 +0000
+++ b/usr.bin/config/sem.c      Tue Nov 04 23:02:14 2014 +0000
@@ -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 @@
                            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;



Home | Main Index | Thread Index | Old Index