projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Silence clang-tidy warnings about atoi(getenv())
[tinc]
/
src
/
sptps_test.c
diff --git
a/src/sptps_test.c
b/src/sptps_test.c
index
b26615e
..
38e8b50
100644
(file)
--- a/
src/sptps_test.c
+++ b/
src/sptps_test.c
@@
-154,7
+154,7
@@
static struct option const long_options[] = {
};
static void usage(void) {
};
static void usage(void) {
- static const char *message =
+ fprintf(stderr,
"Usage: %s [options] my_ed25519_key_file his_ed25519_key_file [host] port\n"
"\n"
"Valid options are:\n"
"Usage: %s [options] my_ed25519_key_file his_ed25519_key_file [host] port\n"
"\n"
"Valid options are:\n"
@@
-172,9
+172,8
@@
static void usage(void) {
" -4 Use IPv4.\n"
" -6 Use IPv6.\n"
"\n"
" -4 Use IPv4.\n"
" -6 Use IPv6.\n"
"\n"
- "Report bugs to tinc@tinc-vpn.org.\n";
-
- fprintf(stderr, message, program_name);
+ "Report bugs to tinc@tinc-vpn.org.\n",
+ program_name);
}
#ifdef HAVE_WINDOWS
}
#ifdef HAVE_WINDOWS