Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Errors are supposed to be negative errno nu...



details:   https://anonhg.NetBSD.org/src/rev/d392a138823e
branches:  trunk
changeset: 785335:d392a138823e
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Mar 09 10:10:45 2013 +0000

description:
Errors are supposed to be negative errno numbers, not -1 which is interpreted
as EPERM.

diffstat:

 sys/arch/arm/arm/disksubr_acorn.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f56feeaea124 -r d392a138823e sys/arch/arm/arm/disksubr_acorn.c
--- a/sys/arch/arm/arm/disksubr_acorn.c Fri Mar 08 23:18:00 2013 +0000
+++ b/sys/arch/arm/arm/disksubr_acorn.c Sat Mar 09 10:10:45 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr_acorn.c,v 1.10 2009/03/15 22:23:16 cegger Exp $       */
+/*     $NetBSD: disksubr_acorn.c,v 1.11 2013/03/09 10:10:45 mlelstv Exp $      */
 
 /*
  * Copyright (c) 1998 Christopher G. Demetriou.  All rights reserved.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr_acorn.c,v 1.10 2009/03/15 22:23:16 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr_acorn.c,v 1.11 2013/03/09 10:10:45 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -365,7 +365,7 @@
 
        if (bb->partition_type != PARTITION_FORMAT_RISCBSD) {
                printf("writedisklabel: Invalid partition format\n");
-               rv = -1;
+               rv = -EINVAL;
                goto out;
        }
 



Home | Main Index | Thread Index | Old Index