small fixes - vx32 - Local 9vx git repository for patches.
 (HTM) git clone git://r-36.net/vx32
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit afe9c1be3a405ae06f8aa1f0d7967cdf8abdd059
 (DIR) parent 9a2b020a5090f8a6adcd2a6adaca4f45e6e16c45
 (HTM) Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
       Date:   Sun, 12 Sep 2010 03:54:46 +0200
       
       small fixes
       
       Diffstat:
         M src/9vx/main.c                      |       2 +-
         M src/9vx/stub.c                      |       3 ++-
       
       2 files changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/9vx/main.c b/src/9vx/main.c
       @@ -196,7 +196,7 @@ main(int argc, char **argv)
                 * bootargs have preference over -r
                 * if localroot is -, keep it for printconfig
                 */
       -        if(bootargc > 0 && strcmp(localroot, "-") != 0)
       +        if(bootargc > 0 && localroot && strcmp(localroot, "-") != 0)
                        localroot = nil;
        
                inifields(&iniopt);
 (DIR) diff --git a/src/9vx/stub.c b/src/9vx/stub.c
       @@ -433,7 +433,8 @@ rebootcmd(int argc, char **argv)
                restoretty();
                for(i = 0; i < argc; i++)
                        iprint("%s%s", argv[i], argc - i > 1 ? " " : "");
       -        iprint("\n");
       +        if(argc > 0)
       +                iprint("\n");
                exit(0);
                error(Egreg);
        }