Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Cosmetic changes trying to appease coverity...



details:   https://anonhg.NetBSD.org/src/rev/3d350b0dc627
branches:  trunk
changeset: 801829:3d350b0dc627
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Aug 19 13:41:08 2014 +0000

description:
Cosmetic changes trying to appease coverity scan.

diffstat:

 usr.sbin/sysinst/partman.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6a58a1c804aa -r 3d350b0dc627 usr.sbin/sysinst/partman.c
--- a/usr.sbin/sysinst/partman.c        Tue Aug 19 13:36:04 2014 +0000
+++ b/usr.sbin/sysinst/partman.c        Tue Aug 19 13:41:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: partman.c,v 1.4 2014/08/08 20:59:35 riz Exp $ */
+/*     $NetBSD: partman.c,v 1.5 2014/08/19 13:41:08 martin Exp $ */
 
 /*
  * Copyright 2012 Eugene Lozovoy
@@ -1736,7 +1736,7 @@
                if (wedges[i].pm == pm_cur && ! wedges[i].allocated)
                        wedges[i].pm = NULL;
 
-       for (i = 0; i < MAXPARTITIONS && i < MAX_WEDGES; i++)
+       for (i = 0; i < min(MAXPARTITIONS,MAX_WEDGES); i++)
                if (pm_cur->bsdlabel[i].pi_fstype != FS_UNUSED) {
                        current = pm_wedge_getfree();
                        if (current < 0) {
@@ -2597,7 +2597,7 @@
                if (pm_i->found > 0)
                        pm_i->found = 0;
        /* Detect all present devices */
-       find_disks("partman");
+       (void)find_disks("partman");
        pm_lvm_find();
        pm_clean();
 



Home | Main Index | Thread Index | Old Index