aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <david.syzdek@acsalaska.com>2020-01-30 20:17:29 -0900
committerDavid M. Syzdek <david.syzdek@acsalaska.com>2020-01-30 20:17:29 -0900
commitaa41a0566608dd7690bb41b4cd5d3100f6f94b03 (patch)
tree8042cbcc5f66ac9de694fdcdb0d695159ed97b7c /src
parent8a6e945b408fd5ce3592ecf46cbded9485d19411 (diff)
downloadakcom-udpecho-aa41a0566608dd7690bb41b4cd5d3100f6f94b03.tar.gz
akcom-udpecho-aa41a0566608dd7690bb41b4cd5d3100f6f94b03.tar.bz2
akcom-udpecho-aa41a0566608dd7690bb41b4cd5d3100f6f94b03.tar.xz
akcom-udpecho-aa41a0566608dd7690bb41b4cd5d3100f6f94b03.zip
cleaning up whitespace
Diffstat (limited to 'src')
-rw-r--r--src/akcom-udpechod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/akcom-udpechod.c b/src/akcom-udpechod.c
index 6aab231..1d63728 100644
--- a/src/akcom-udpechod.c
+++ b/src/akcom-udpechod.c
@@ -56,7 +56,7 @@
56/////////////// 56///////////////
57#pragma mark - Headers 57#pragma mark - Headers
58 58
59#include <stdint.h> 59#include <stdint.h>
60#include <inttypes.h> 60#include <inttypes.h>
61#include <stdio.h> 61#include <stdio.h>
62#include <stdlib.h> 62#include <stdlib.h>
@@ -439,7 +439,7 @@ int main(int argc, char * argv[])
439 close(s); 439 close(s);
440 unlink(cnf.pidfile); 440 unlink(cnf.pidfile);
441 closelog(); 441 closelog();
442 442
443 return(0); 443 return(0);
444} 444}
445 445
@@ -640,7 +640,7 @@ int my_daemonize(void)
640 640
641 // change ownership 641 // change ownership
642 if ( (getgid() != cnf.gid) && ((rc = setregid(cnf.gid, cnf.gid)) == -1) ) 642 if ( (getgid() != cnf.gid) && ((rc = setregid(cnf.gid, cnf.gid)) == -1) )
643 { 643 {
644 syslog(LOG_ERR, "error: getgid(): %s", strerror(errno)); 644 syslog(LOG_ERR, "error: getgid(): %s", strerror(errno));
645 close(s); 645 close(s);
646 close(fd); 646 close(fd);
@@ -764,7 +764,7 @@ int my_log_conn(int mode, uint64_t * connp, union my_sa * sap,
764 764
765 // log if IPv4 address mapped to IPv6 765 // log if IPv4 address mapped to IPv6
766 if (sap->ss.ss_family == AF_INET6) 766 if (sap->ss.ss_family == AF_INET6)
767 if (mode == MY_RECV) 767 if (mode == MY_RECV)
768 if (IN6_IS_ADDR_V4MAPPED(&sap->sin6.sin6_addr) != 0) 768 if (IN6_IS_ADDR_V4MAPPED(&sap->sin6.sin6_addr) != 0)
769 syslog(LOG_INFO, "conn %zu: client: [%s]:%hu; IPv4 mapped address", *connp, addr_str, port); 769 syslog(LOG_INFO, "conn %zu: client: [%s]:%hu; IPv4 mapped address", *connp, addr_str, port);
770 770