summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-11-27 03:10:16 -0600
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-11-27 03:10:16 -0600
commit59bcef5c27540527fc4ca1007e9cfea5783ba233 (patch)
tree583c651dcd7d6fff34db26805b4606fa45a90aac /src/bin
parent8b1c2f7e40f9c7ae77d3afb9f3eec21886c8f060 (diff)
downloadmisc-59bcef5c27540527fc4ca1007e9cfea5783ba233.tar.gz
misc-59bcef5c27540527fc4ca1007e9cfea5783ba233.zip
updated httpd.c to use different dirs for sites and vhosts
updated gopherd.sh to use the new rdns script rdns script just wraps dig -x and outputs a real hostname instead of one ending with a '.' rebuild.sh got a cd added to the top so it can be run from somewhere else mime-type got an error line commented out.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/rrd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/rrd.c b/src/bin/rrd.c
index bbb907d..1b43426 100644
--- a/src/bin/rrd.c
+++ b/src/bin/rrd.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <sys/sysctl.h>
#include <net/route.h>
@@ -43,7 +44,7 @@ void print_sa6(struct sockaddr *sa) {
}
void p_rtentry(struct rt_msghdr *rtm) {
- struct sockadrr *sa = (struct sockaddr *)(rtm+1);
+ struct sockadrr *sa = (rtm+1);
struct sockaddr *rti_info[RTAX_MAX];
struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)sa;
struct in6_addr *in6 = &sa6->sin6_addr;