Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt cosmetic fix from drochner@



details:   https://anonhg.NetBSD.org/src/rev/4356846ab804
branches:  trunk
changeset: 790919:4356846ab804
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Sat Oct 26 20:31:23 2013 +0000

description:
cosmetic fix from drochner@

diffstat:

 sbin/gpt/map.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 821cb7455ba5 -r 4356846ab804 sbin/gpt/map.c
--- a/sbin/gpt/map.c    Sat Oct 26 20:07:14 2013 +0000
+++ b/sbin/gpt/map.c    Sat Oct 26 20:31:23 2013 +0000
@@ -29,7 +29,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/map.c,v 1.6 2005/08/31 01:47:19 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: map.c,v 1.2 2006/10/15 22:36:29 christos Exp $");
+__RCSID("$NetBSD: map.c,v 1.3 2013/10/26 20:31:23 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -72,8 +72,8 @@
                return (NULL);
 
        if (n->map_start + n->map_size < start + size) {
-               warnx("error: bogus map");
-               return (0);
+               warnx("error: map entry doesn't fit media");
+               return (NULL);
        }
 
        if (n->map_start == start && n->map_size == size) {



Home | Main Index | Thread Index | Old Index