Refactor to remove code duplication in rigctl*.c

pull/1858/head
Daniele Forsi IU5HKX 2025-08-15 18:04:30 +02:00
rodzic 7fce140970
commit 67038154db
4 zmienionych plików z 9 dodań i 32 usunięć

Wyświetl plik

@ -910,14 +910,4 @@ void usage(void)
);
usage_rig(stdout);
printf("\nError codes and messages\n");
for (enum rig_errcode_e e = 0; e < RIG_EEND; ++e)
{
printf("-%d - %s", e, rigerror2(e));
}
printf("\nReport bugs to <hamlib-developer@lists.sourceforge.net>.\n");
}

Wyświetl plik

@ -2005,6 +2005,15 @@ void usage_rig(FILE *fout)
"Commands and arguments read from standard input must be white space separated,\n"
"comments are allowed, comments start with the # character and continue to the\n"
"end of the line.\n");
fprintf(fout, "\nError codes and messages\n");
for (enum rig_errcode_e e = 0; e < RIG_EEND; ++e)
{
fprintf(fout, "-%d - %s", e, rigerror2(e));
}
fprintf(fout, "\nReport bugs to <hamlib-developer@lists.sourceforge.net>.\n");
}

Wyświetl plik

@ -1448,15 +1448,4 @@ void usage(void)
portno);
usage_rig(stdout);
printf("\nError codes and messages\n");
for (enum rig_errcode_e e = 0; e < RIG_EEND; ++e)
{
printf("-%d - %s", e, rigerror2(e));
}
printf("\nReport bugs to <hamlib-developer@lists.sourceforge.net>.\n");
}

Wyświetl plik

@ -1451,15 +1451,4 @@ void usage(void)
portno);
usage_rig(stdout);
printf("\nError codes and messages\n");
for (enum rig_errcode_e e = 0; e < RIG_EEND; ++e)
{
printf("-%d - %s", e, rigerror2(e));
}
printf("\nReport bugs to <hamlib-developer@lists.sourceforge.net>.\n");
}