Subversion Repositories HelenOS

Rev

Rev 3341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3341 Rev 3342
Line 54... Line 54...
54
 * (change to your liking in configure.ac and re-run autoconf) */
54
 * (change to your liking in configure.ac and re-run autoconf) */
55
const char *progname = PACKAGE_NAME;
55
const char *progname = PACKAGE_NAME;
56
 
56
 
57
/* (re)allocates memory to store the current working directory, gets
57
/* (re)allocates memory to store the current working directory, gets
58
 * and updates the current working directory, formats the prompt string */
58
 * and updates the current working directory, formats the prompt string */
59
int cli_set_prompt(cliuser_t *usr)
59
unsigned int cli_set_prompt(cliuser_t *usr)
60
{
60
{
61
    usr->prompt = (char *) realloc(usr->prompt, PATH_MAX);
61
    usr->prompt = (char *) realloc(usr->prompt, PATH_MAX);
62
    if (NULL == usr->prompt) {
62
    if (NULL == usr->prompt) {
63
        cli_error(CL_ENOMEM, "Can not allocate prompt");
63
        cli_error(CL_ENOMEM, "Can not allocate prompt");
64
        return 1;
64
        return 1;