examples/fileman.c: Deregister

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2018-12-31 22:39:20 +01:00
parent 8566eb8384
commit 5c8429dcee

View File

@ -134,7 +134,7 @@ int main(int argc __attribute__ ((__unused__)), char **argv)
/* Execute a command line. */ /* Execute a command line. */
int execute_line(char *line) int execute_line(char *line)
{ {
register int i; int i;
COMMAND *command; COMMAND *command;
char *word; char *word;
@ -171,7 +171,7 @@ int execute_line(char *line)
command. Return a NULL pointer if NAME isn't a command name. */ command. Return a NULL pointer if NAME isn't a command name. */
COMMAND *find_command(char *name) COMMAND *find_command(char *name)
{ {
register int i; int i;
for (i = 0; commands[i].name; i++) for (i = 0; commands[i].name; i++)
if (strcmp(name, commands[i].name) == 0) if (strcmp(name, commands[i].name) == 0)
@ -184,7 +184,7 @@ COMMAND *find_command(char *name)
into STRING. */ into STRING. */
char *stripwhite(char *string) char *stripwhite(char *string)
{ {
register char *s, *t; char *s, *t;
for (s = string; isspace(*s); s++) ; for (s = string; isspace(*s); s++) ;
@ -354,7 +354,7 @@ int com_delete(char *arg __attribute__ ((__unused__)))
not present. */ not present. */
int com_help(char *arg) int com_help(char *arg)
{ {
register int i; int i;
int printed = 0; int printed = 0;
for (i = 0; commands[i].name; i++) { for (i = 0; commands[i].name; i++) {