cli: Share a common write_cmd() implementation
wpa_cli and hostapd_cli had identical copies of this function. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
fcc84b48b2
commit
980afcce53
4 changed files with 31 additions and 60 deletions
|
@ -38,5 +38,7 @@ int cli_txt_list_add_word(struct dl_list *txt_list, const char *txt,
|
|||
char ** cli_txt_list_array(struct dl_list *txt_list);
|
||||
|
||||
int get_cmd_arg_num(const char *str, int pos);
|
||||
int write_cmd(char *buf, size_t buflen, const char *cmd, int argc,
|
||||
char *argv[]);
|
||||
|
||||
#endif /* CLI_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue