mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +03:00
A library for including a Cisco-like command-line interface https://github.com/dparrish/libcli [TT: modernize]
11 lines
430 B
Diff
11 lines
430 B
Diff
--- libcli-1.9.7.orig/clitest.c
|
|
+++ libcli-1.9.7/clitest.c
|
|
@@ -72,7 +72,7 @@
|
|
int cmd_test(struct cli_def *cli, const char *command, char *argv[], int argc)
|
|
{
|
|
int i;
|
|
- cli_print(cli, "called %s with \"%s\"", __FUNCTION__, command);
|
|
+ cli_print(cli, "called %s with \"%s\"", __func__, command);
|
|
cli_print(cli, "%d arguments:", argc);
|
|
for (i = 0; i < argc; i++)
|
|
cli_print(cli, " %s", argv[i]);
|