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

Unified Diff: srtp/crypto/test/rand_gen_soak.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/crypto/test/rand_gen.c ('k') | srtp/doc/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: srtp/crypto/test/rand_gen_soak.c
diff --git a/srtp/crypto/test/rand_gen_soak.c b/srtp/crypto/test/rand_gen_soak.c
index a39aaa06eb8bd51feb24b33941849c5af32fb21b..b0e67a7348508b1747e2a3cc934045d90589fff8 100644
--- a/srtp/crypto/test/rand_gen_soak.c
+++ b/srtp/crypto/test/rand_gen_soak.c
@@ -43,7 +43,7 @@
#endif
#include <stdio.h> /* for printf() */
-#include <unistd.h> /* for getopt() */
+#include "getopt_s.h"
#include "crypto_kernel.h"
#define BUF_LEN (MAX_PRINT_STRING_LEN/2)
@@ -51,7 +51,6 @@
int main(int argc, char *argv[])
{
int q;
- extern char *optarg;
int num_octets = 0;
err_status_t status;
uint32_t iterations = 0;
@@ -68,7 +67,7 @@ int main(int argc, char *argv[])
}
while (1) {
- q = getopt(argc, argv, "pvn:");
+ q = getopt_s(argc, argv, "pvn:");
if (q == -1) {
break;
}
@@ -77,7 +76,7 @@ int main(int argc, char *argv[])
print_values = 1;
break;
case 'n':
- num_octets = atoi(optarg);
+ num_octets = atoi(optarg_s);
if (num_octets < 0 || num_octets > BUF_LEN) {
exit(255);
}
« no previous file with comments | « srtp/crypto/test/rand_gen.c ('k') | srtp/doc/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698