diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-09-29 15:27:08 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-09-29 20:00:36 -0700 |
| commit | 869d0eeb20657cd6d2e87d8c4836b086c6be448d (patch) | |
| tree | 4731bf410cf36fb3442861575807dbb83400a3b3 /tests/trantest.h | |
| parent | 82d17f6365a95a500c32ae3a4ad40ff6fb609f3e (diff) | |
| download | nng-869d0eeb20657cd6d2e87d8c4836b086c6be448d.tar.gz nng-869d0eeb20657cd6d2e87d8c4836b086c6be448d.tar.bz2 nng-869d0eeb20657cd6d2e87d8c4836b086c6be448d.zip | |
Windows UDP support.
This implements the basic UDP functionality for Windows (required
for ZeroTier for example). We have also introduced a UDP test suite
to validate that this actually works. While here a few Windows
compilation warnings / nits were fixed.
Diffstat (limited to 'tests/trantest.h')
| -rw-r--r-- | tests/trantest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/trantest.h b/tests/trantest.h index b6843ea6..4b4d0335 100644 --- a/tests/trantest.h +++ b/tests/trantest.h @@ -183,7 +183,7 @@ trantest_send_recv_large(trantest *tt) size = 1024 * 128; // bigger than any transport segment So((data = nng_alloc(size)) != NULL); - for (int i = 0; i < size; i++) { + for (int i = 0; (size_t) i < size; i++) { data[i] = nni_random() & 0xff; } |
