Skip to content

Commit 2a391b8

Browse files
author
Eric Chehata
committed
[cmdline] Convert aws_get_boot_creds_from_secret and userdata commands to COMMAND macro
Convert aws_get_boot_creds_from_secret and userdata commands from the legacy struct command format to use the new COMMAND() macro.
1 parent 40dbcf9 commit 2a391b8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/hci/commands/aws_get_boot_creds_from_secret_cmd.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,4 @@ static int aws_get_boot_creds_from_secret_exec ( int argc, char **argv ) {
291291
}
292292

293293
/** AWS get boot credentials from secret command */
294-
struct command aws_get_boot_creds_from_secret __command = {
295-
.name = "aws_get_boot_creds_from_secret",
296-
.exec = aws_get_boot_creds_from_secret_exec,
297-
};
294+
COMMAND ( aws_get_boot_creds_from_secret, aws_get_boot_creds_from_secret_exec );

src/hci/commands/userdata_cmd.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,4 @@ static int userdata_exec ( int argc, char **argv ) {
8585
}
8686

8787
/** userdata command */
88-
struct command userdata_command __command = {
89-
.name = "userdata",
90-
.exec = userdata_exec,
91-
};
88+
COMMAND ( userdata, userdata_exec );

0 commit comments

Comments
 (0)