summary refs log tree commit diff
path: root/bin/pbd.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-04-16 22:37:02 -0400
committerJune McEnroe <june@causal.agency>2018-04-16 22:37:19 -0400
commit0ec89d0df5385cf40b204dff84ea47ded7985236 (patch)
treeaf718e3bbd7588cc060fe5669f2a650b3a93660b /bin/pbd.c
parentAdd 0 bind to brot (diff)
downloadsrc-0ec89d0df5385cf40b204dff84ea47ded7985236.tar.gz
src-0ec89d0df5385cf40b204dff84ea47ded7985236.zip
Always hexadecimal in uppercase
I still haven't been able to actually test scheme's Linux console
output...
Diffstat (limited to 'bin/pbd.c')
-rw-r--r--bin/pbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pbd.c b/bin/pbd.c
index de16d7eb..afe2a77e 100644
--- a/bin/pbd.c
+++ b/bin/pbd.c
@@ -59,7 +59,7 @@ static int pbd(void) {
     struct sockaddr_in addr = {
         .sin_family = AF_INET,
         .sin_port = htons(7062),
-        .sin_addr = { .s_addr = htonl(0x7f000001) },
+        .sin_addr = { .s_addr = htonl(0x7F000001) },
     };
     error = bind(server, (struct sockaddr *)&addr, sizeof(addr));
     if (error) err(EX_UNAVAILABLE, "bind");
@@ -93,7 +93,7 @@ static int pbdClient(void) {
     struct sockaddr_in addr = {
         .sin_family = AF_INET,
         .sin_port = htons(7062),
-        .sin_addr = { .s_addr = htonl(0x7f000001) },
+        .sin_addr = { .s_addr = htonl(0x7F000001) },
     };
     int error = connect(client, (struct sockaddr *)&addr, sizeof(addr));
     if (error) err(EX_UNAVAILABLE, "connect");