Changeset 46c20c8 in mainline for uspace/app/bdsh/scli.c


Ignore:
Timestamp:
2010-11-26T20:08:10Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45df59a
Parents:
fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/scli.c

    rfb150d78 r46c20c8  
    3131#include <stdio.h>
    3232#include <stdlib.h>
    33 #include <string.h>
     33#include <str.h>
    3434#include <unistd.h>
    3535#include "config.h"
     
    6565        usr->lasterr = 0;
    6666
    67         input_init();
     67        if (input_init() != 0)
     68                return 1;
    6869
    6970        return (int) cli_set_prompt(usr);
     
    8889                exit(EXIT_FAILURE);
    8990
    90         printf("Welcome to %s - %s\nType `help' at any time for usage information.\n",
    91                 progname, PACKAGE_STRING);
    92 
    9391        while (!cli_quit) {
    9492                get_input(&usr);
     
    9997                }
    10098        }
    101         goto finit;
    10299
    103 finit:
     100        printf("Leaving %s.\n", progname);
     101
    104102        cli_finit(&usr);
    105103        return ret;
Note: See TracChangeset for help on using the changeset viewer.