aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-03 11:00:53 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-03 11:01:20 +0100
commit64f39cd95d16342f3adb092cdf060e8e989b213a (patch)
tree2986602c1765526b9dccc0f6897a41d3976dd167 /example
parentexample: remove extra argument from print (diff)
downloadwintun-64f39cd95d16342f3adb092cdf060e8e989b213a.tar.xz
wintun-64f39cd95d16342f3adb092cdf060e8e989b213a.zip
api: only return top two version nibbles
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'example')
-rw-r--r--example/example.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/example/example.c b/example/example.c
index a52740f..814cd57 100644
--- a/example/example.c
+++ b/example/example.c
@@ -314,11 +314,9 @@ main(void)
goto cleanupQuit;
}
- DWORDLONG Version = WintunGetVersion();
+ DWORD Version = WintunGetVersion();
Log(WINTUN_LOG_INFO,
- L"Wintun v%d.%d.%d.%d loaded",
- (Version >> 48) & 0xff,
- (Version >> 32) & 0xff,
+ L"Wintun v%u.%u loaded",
(Version >> 16) & 0xff,
(Version >> 0) & 0xff);