]> git.scottworley.com Git - tattlekey/blobdiff - client/net.c
client: Prefix all the config settings with "config_"
[tattlekey] / client / net.c
index c692a12fa562f7e0147efb4c6a691d64ff027192..9ced48f2864364abaee1083174bdb9472682f102 100644 (file)
@@ -20,10 +20,10 @@ static void initialize_the_pcb() {
     signal_error_by_blinking();
 
   ip_addr_t ipaddr;
-  if (ip4addr_aton(tattle_server_ip_address, &ipaddr) == 0)
+  if (ip4addr_aton(config_tattle_server_ip_address, &ipaddr) == 0)
     signal_error_by_blinking();
 
-  if (udp_connect(the_pcb, &ipaddr, tattle_port) != ERR_OK)
+  if (udp_connect(the_pcb, &ipaddr, config_tattle_port) != ERR_OK)
     signal_error_by_blinking();
 }
 
@@ -45,7 +45,7 @@ void send_report(u16_t seq, u16_t ago) {
 
   struct tattle_message_wire_format *msg =
       (struct tattle_message_wire_format *)(p->payload);
-  msg->sender = htons(this_tattler_identity);
+  msg->sender = htons(config_this_tattler_identity);
   msg->seq = htons(seq);
   msg->ago = htons(ago);