Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Change return type of pm_lvm_f...



details:   https://anonhg.NetBSD.org/src/rev/022f3a1849df
branches:  trunk
changeset: 318632:022f3a1849df
user:      kre <kre%NetBSD.org@localhost>
date:      Tue May 01 21:28:39 2018 +0000
description:
Change return type of pm_lvm_find() from int to void.
It always returns (returned) 0 which was ignored by the one call.

diffstat:

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

diffs (26 lines):

diff -r 5eef66175e14 -r 022f3a1849df usr.sbin/sysinst/partman.c
--- a/usr.sbin/sysinst/partman.c        Tue May 01 21:26:41 2018 +0000
+++ b/usr.sbin/sysinst/partman.c        Tue May 01 21:28:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: partman.c,v 1.20 2018/05/01 21:26:41 kre Exp $ */
+/*     $NetBSD: partman.c,v 1.21 2018/05/01 21:28:39 kre Exp $ */
 
 /*
  * Copyright 2012 Eugene Lozovoy
@@ -1173,7 +1173,7 @@
 
 /* Add lvm logical volumes to pm list */
 /* XXX: rewrite */
-static int
+static void
 pm_lvm_find(void)
 {
        int i, ii, already_found;
@@ -1213,7 +1213,6 @@
                        memset(pm_new, 0, sizeof *pm_new);
                }
        }
-       return 0;
 }
 
 static int



Home | Main Index | Thread Index | Old Index