Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: srtp/test/rtpw.c

Issue 1098043003: Update libsrtp to 1.5.2 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « srtp/test/rtp.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: srtp/test/rtpw.c
diff --git a/srtp/test/rtpw.c b/srtp/test/rtpw.c
index 17f27f278136bfb72c451b182878f75a6f8c9421..9d560b6d069f461d0d46a1538c196c3fe6086775 100644
--- a/srtp/test/rtpw.c
+++ b/srtp/test/rtpw.c
@@ -68,6 +68,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for close() */
+#elif defined(_MSC_VER)
+#include <io.h> /* for _close() */
+#define close _close
#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
@@ -470,7 +473,7 @@ main (int argc, char *argv[]) {
expected_len, len);
exit(1);
}
- if (strlen(input_key) > policy.rtp.cipher_key_len*2) {
+ if ((int) strlen(input_key) > policy.rtp.cipher_key_len*2) {
fprintf(stderr,
"error: too many digits in key/salt "
"(should be %d hexadecimal digits, found %u)\n",
« no previous file with comments | « srtp/test/rtp.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698