forked from openbsd/ports
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some members of struct cmd which are no longer used.
- Loading branch information
Showing
1 changed file
with
1 addition
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: cmd.c,v 1.168 2021/08/21 14:06:17 nicm Exp $ */ | ||
/* $OpenBSD: cmd.c,v 1.169 2021/08/21 14:10:08 nicm Exp $ */ | ||
|
||
/* | ||
* Copyright (c) 2007 Nicholas Marriott <[email protected]> | ||
|
@@ -222,10 +222,6 @@ struct cmd { | |
char *file; | ||
u_int line; | ||
|
||
char *alias; | ||
int argc; | ||
char **argv; | ||
|
||
TAILQ_ENTRY(cmd) qentry; | ||
}; | ||
TAILQ_HEAD(cmds, cmd); | ||
|
@@ -530,10 +526,6 @@ cmd_parse(int argc, char **argv, const char *file, u_int line, char **cause) | |
cmd->file = xstrdup(file); | ||
cmd->line = line; | ||
|
||
cmd->alias = NULL; | ||
cmd->argc = argc; | ||
cmd->argv = cmd_copy_argv(argc, argv); | ||
|
||
return (cmd); | ||
|
||
usage: | ||
|
@@ -547,9 +539,6 @@ cmd_parse(int argc, char **argv, const char *file, u_int line, char **cause) | |
void | ||
cmd_free(struct cmd *cmd) | ||
{ | ||
free(cmd->alias); | ||
cmd_free_argv(cmd->argc, cmd->argv); | ||
|
||
free(cmd->file); | ||
|
||
args_free(cmd->args); | ||
|