26,7 → 26,7 |
* type |
*/ |
|
static enum cmd_result cmd_type(struct cmd_funcparam *p) { |
static int cmd_type(struct cmd_funcparam *p) { |
char *buff = p->BUFFER; |
const char *fname = p->argv[0]; |
unsigned short err = 0; |
35,17 → 35,17 |
outputnl("Displays the contents of a text file."); |
outputnl(""); |
outputnl("TYPE [drive:][path]filename"); |
return(CMD_OK); |
return(-1); |
} |
|
if (p->argc == 0) { |
outputnl("Required parameter missing"); |
return(CMD_FAIL); |
return(-1); |
} |
|
if (p->argc > 1) { |
outputnl("Too many parameters"); |
return(CMD_FAIL); |
return(-1); |
} |
|
/* if here then display the file */ |
104,10 → 104,7 |
pop ax |
} |
|
if (err != 0) { |
outputnl(doserr(err)); |
return(CMD_FAIL); |
} |
if (err != 0) outputnl(doserr(err)); |
|
return(CMD_OK); |
return(-1); |
} |