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

Side by Side Diff: srtp/crypto/test/env.c

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Updated to libsrtp 1.5.1 Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « srtp/crypto/test/datatypes_driver.c ('k') | srtp/crypto/test/kernel_driver.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * env.c 2 * env.c
3 * 3 *
4 * prints out a brief report on the build environment 4 * prints out a brief report on the build environment
5 * 5 *
6 * David McGrew 6 * David McGrew
7 * Cisco Systems, Inc. 7 * Cisco Systems, Inc.
8 */ 8 */
9 /* 9 /*
10 * 10 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 * 42 *
43 */ 43 */
44 44
45 #include <stdio.h> 45 #include <stdio.h>
46 #include <string.h> /* for srtcmp() */ 46 #include <string.h> /* for srtcmp() */
47 #include "config.h" 47 #include "config.h"
48 48
49 int 49 int
50 main(void) { 50 main(void) {
51 int err_count = 0; 51 int err_count = 0;
52 #ifndef OPENSSL
52 char *str; 53 char *str;
54 #endif
53 55
54 #ifdef WORDS_BIGENDIAN 56 #ifdef WORDS_BIGENDIAN
55 printf("CPU set to big-endian\t\t\t(WORDS_BIGENDIAN == 1)\n"); 57 printf("CPU set to big-endian\t\t\t(WORDS_BIGENDIAN == 1)\n");
56 #else 58 #else
57 printf("CPU set to little-endian\t\t(WORDS_BIGENDIAN == 0)\n"); 59 printf("CPU set to little-endian\t\t(WORDS_BIGENDIAN == 0)\n");
58 #endif 60 #endif
59 61
60 #ifdef CPU_RISC 62 #ifdef CPU_RISC
61 printf("CPU set to RISC\t\t\t\t(CPU_RISC == 1)\n"); 63 printf("CPU set to RISC\t\t\t\t(CPU_RISC == 1)\n");
62 #elif defined(CPU_CISC) 64 #elif defined(CPU_CISC)
(...skipping 10 matching lines...) Expand all
73 #ifndef NO_64BIT_MATH 75 #ifndef NO_64BIT_MATH
74 printf("using native 64-bit type\t\t(NO_64_BIT_MATH == 0)\n"); 76 printf("using native 64-bit type\t\t(NO_64_BIT_MATH == 0)\n");
75 #else 77 #else
76 printf("using built-in 64-bit math\t\t(NO_64_BIT_MATH == 1)\n"); 78 printf("using built-in 64-bit math\t\t(NO_64_BIT_MATH == 1)\n");
77 #endif 79 #endif
78 80
79 #ifdef ERR_REPORTING_STDOUT 81 #ifdef ERR_REPORTING_STDOUT
80 printf("using stdout for error reporting\t(ERR_REPORTING_STDOUT == 1)\n"); 82 printf("using stdout for error reporting\t(ERR_REPORTING_STDOUT == 1)\n");
81 #endif 83 #endif
82 84
85 #ifndef OPENSSL
83 #ifdef DEV_URANDOM 86 #ifdef DEV_URANDOM
84 str = DEV_URANDOM; 87 str = DEV_URANDOM;
85 #else 88 #else
86 str = ""; 89 str = "";
87 #endif 90 #endif
88 printf("using %s as a random source\t(DEV_URANDOM == %s)\n", 91 printf("using %s as a random source\t(DEV_URANDOM == %s)\n",
89 str, str); 92 str, str);
90 if (strcmp("", str) == 0) { 93 if (strcmp("", str) == 0) {
91 err_count++; 94 err_count++;
92 } 95 }
96 #endif
93 97
94 if (err_count) 98 if (err_count)
95 printf("warning: configuration is probably in error " 99 printf("warning: configuration is probably in error "
96 "(found %d problems)\n", err_count); 100 "(found %d problems)\n", err_count);
97 101
98 return err_count; 102 return err_count;
99 } 103 }
OLDNEW
« no previous file with comments | « srtp/crypto/test/datatypes_driver.c ('k') | srtp/crypto/test/kernel_driver.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698