summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/ntoh.c
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
commitf7d30133221896638f7bf4f66c504255c4b14f48 (patch)
tree5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/tests/ntoh.c
parent26b297510a11758727438df4669357a2a2bc42ce (diff)
downloadUXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.gz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.lz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.xz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.zip
Issue #1338 - Part 1: Update NSPR to 4.24
Diffstat (limited to 'nsprpub/pr/tests/ntoh.c')
-rw-r--r--nsprpub/pr/tests/ntoh.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/nsprpub/pr/tests/ntoh.c b/nsprpub/pr/tests/ntoh.c
index b4ddc81e6..980a1b498 100644
--- a/nsprpub/pr/tests/ntoh.c
+++ b/nsprpub/pr/tests/ntoh.c
@@ -33,17 +33,17 @@ int main(int argc, char **argv)
un.s = s_h;
printf("%u %u\n",
- un.bytes[0], un.bytes[1]);
+ un.bytes[0], un.bytes[1]);
un.s = PR_htons(un.s);
printf("%u %u\n",
- un.bytes[0], un.bytes[1]);
+ un.bytes[0], un.bytes[1]);
if (memcmp(un.bytes, bytes_n, 2)) {
fprintf(stderr, "PR_htons failed\n");
exit(1);
}
un.s = PR_ntohs(un.s);
printf("%u %u\n",
- un.bytes[0], un.bytes[1]);
+ un.bytes[0], un.bytes[1]);
if (un.s != s_h) {
fprintf(stderr, "PR_ntohs failed\n");
exit(1);
@@ -51,17 +51,17 @@ int main(int argc, char **argv)
un.l = l_h;
printf("%u %u %u %u\n",
- un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3]);
+ un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3]);
un.l = PR_htonl(un.l);
printf("%u %u %u %u\n",
- un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3]);
+ un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3]);
if (memcmp(un.bytes, bytes_n, 4)) {
fprintf(stderr, "PR_htonl failed\n");
exit(1);
}
un.l = PR_ntohl(un.l);
printf("%u %u %u %u\n",
- un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3]);
+ un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3]);
if (un.l != l_h) {
fprintf(stderr, "PR_ntohl failed\n");
exit(1);
@@ -69,20 +69,20 @@ int main(int argc, char **argv)
un.ll = ll_h;
printf("%u %u %u %u %u %u %u %u\n",
- un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3],
- un.bytes[4], un.bytes[5], un.bytes[6], un.bytes[7]);
+ un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3],
+ un.bytes[4], un.bytes[5], un.bytes[6], un.bytes[7]);
un.ll = PR_htonll(un.ll);
printf("%u %u %u %u %u %u %u %u\n",
- un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3],
- un.bytes[4], un.bytes[5], un.bytes[6], un.bytes[7]);
+ un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3],
+ un.bytes[4], un.bytes[5], un.bytes[6], un.bytes[7]);
if (memcmp(un.bytes, bytes_n, 8)) {
fprintf(stderr, "PR_htonll failed\n");
exit(1);
}
un.ll = PR_ntohll(un.ll);
printf("%u %u %u %u %u %u %u %u\n",
- un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3],
- un.bytes[4], un.bytes[5], un.bytes[6], un.bytes[7]);
+ un.bytes[0], un.bytes[1], un.bytes[2], un.bytes[3],
+ un.bytes[4], un.bytes[5], un.bytes[6], un.bytes[7]);
if (LL_NE(un.ll, ll_h)) {
fprintf(stderr, "PR_ntohll failed\n");
exit(1);