Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/lib No need to return a empty string lit...



details:   https://anonhg.NetBSD.org/src/rev/46f8601da572
branches:  trunk
changeset: 325771:46f8601da572
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Jan 05 20:52:57 2014 +0000

description:
No need to return a empty string literal of the wrong const-ness when we
already have a empty string of the correct const-ness.

diffstat:

 sys/arch/i386/stand/lib/parseutils.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 26cb3bcee6b1 -r 46f8601da572 sys/arch/i386/stand/lib/parseutils.c
--- a/sys/arch/i386/stand/lib/parseutils.c      Sun Jan 05 20:49:20 2014 +0000
+++ b/sys/arch/i386/stand/lib/parseutils.c      Sun Jan 05 20:52:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parseutils.c,v 1.6 2011/08/18 13:20:04 christos Exp $  */
+/*     $NetBSD: parseutils.c,v 1.7 2014/01/05 20:52:57 jakllsch Exp $  */
 
 /*
  * Copyright (c) 1996, 1997
@@ -64,7 +64,7 @@
                break;
        }
        if (*options == '\0')
-               return "";
+               return options;
 
        /* trim leading blanks/tabs */
        while (*options == ' ' || *options == '\t')



Home | Main Index | Thread Index | Old Index