Mercurial > hg > freeDiameter
comparison freeDiameter/tests/testsctp.c @ 482:3b7d579e9507
Remove compilation warnings if DISABLE_SCTP
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 10 Aug 2010 10:46:07 +0900 |
parents | a186743b89a3 |
children | 2b0578a5c589 |
comparison
equal
deleted
inserted
replaced
481:b1e96cfc093a | 482:3b7d579e9507 |
---|---|
51 int main(int argc, char *argv[]) | 51 int main(int argc, char *argv[]) |
52 { | 52 { |
53 #ifdef DISABLE_SCTP | 53 #ifdef DISABLE_SCTP |
54 /* In this case, we don't perform this simple test */ | 54 /* In this case, we don't perform this simple test */ |
55 PASSTEST(); | 55 PASSTEST(); |
56 #endif | 56 #else /* DISABLE_SCTP */ |
57 int sock, srvsock, clisock; | 57 int sock, srvsock, clisock; |
58 char buf1[]="abcdef"; | 58 char buf1[]="abcdef"; |
59 char *buf2; | 59 char *buf2; |
60 size_t sz; | 60 size_t sz; |
61 struct fd_list eps = FD_LIST_INITIALIZER(eps); | 61 struct fd_list eps = FD_LIST_INITIALIZER(eps); |
128 CHECK( 0, memcmp(buf1, buf2, sz) ); | 128 CHECK( 0, memcmp(buf1, buf2, sz) ); |
129 free(buf2); buf2 = NULL; | 129 free(buf2); buf2 = NULL; |
130 | 130 |
131 /* That's all for the tests yet */ | 131 /* That's all for the tests yet */ |
132 PASSTEST(); | 132 PASSTEST(); |
133 #endif /* DISABLE_SCTP */ | |
133 } | 134 } |
134 | 135 |