diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-20 21:24:27 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-21 11:26:52 +0200 |
commit | b318e81cd0849ef7725f6776a680eccc7fcfdc06 (patch) | |
tree | 09d714da35a9a67160a04527ca73e7057b3c6817 /src/showconf.c | |
parent | wg: support horrible freebsd/osx/unix semantics (diff) | |
download | wireguard-tools-b318e81cd0849ef7725f6776a680eccc7fcfdc06.tar.xz wireguard-tools-b318e81cd0849ef7725f6776a680eccc7fcfdc06.zip |
wg: rename kernel to ipc
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | src/showconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/showconf.c b/src/showconf.c index 68084c0..75d78e0 100644 --- a/src/showconf.c +++ b/src/showconf.c @@ -12,7 +12,7 @@ #include "subcommands.h" #include "base64.h" -#include "kernel.h" +#include "ipc.h" #include "../uapi.h" int showconf_main(int argc, char *argv[]) @@ -31,13 +31,13 @@ int showconf_main(int argc, char *argv[]) return 1; } - if (!has_wireguard_interface(argv[1])) { + if (!ipc_has_device(argv[1])) { fprintf(stderr, "`%s` is not a valid WireGuard interface\n", argv[1]); fprintf(stderr, "Usage: %s %s <interface>\n", PROG_NAME, argv[0]); return 1; } - if (get_device(&device, argv[1])) { + if (ipc_get_device(&device, argv[1])) { perror("Unable to get device"); goto cleanup; } |