Skip to content

Commit

Permalink
At least one style(9) rule breaks things
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Jul 1, 2015
1 parent 71ba658 commit f8f9fca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions bofh/bofh-divert.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ void usage() {
}

int main(int argc, char *argv[]) {
int fd, s,n;
int fd, s;
struct sockaddr_in sin;
struct in_addr *pfip;
socklen_t sin_len;
char pfTable[PF_TABLE_NAME_SIZE];
int divertPort=0;
Expand Down
6 changes: 3 additions & 3 deletions dnsbl/dnsbl-divert.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>

#include <net/if.h>
#include <net/pfvar.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
Expand All @@ -43,6 +43,7 @@
#include <netinet/tcpip.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <net/pfvar.h>

#include <ctype.h> // for isdigit
#include <err.h>
Expand Down Expand Up @@ -103,8 +104,7 @@ int main(int argc, char *argv[]) {
struct hostent *hp = NULL;
socklen_t sin_len;
unsigned long dns = 0l;
int sockfd;
int rv;

char pf_table_black[PF_TABLE_NAME_SIZE];
char pf_table_cache[PF_TABLE_NAME_SIZE];
int divertPort=0;
Expand Down
2 changes: 1 addition & 1 deletion stdpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <net/pfvar.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/in_systm.h>
#include <netinet/ip_var.h>
#include <arpa/inet.h>
#include <net/pfvar.h>

#include <err.h>
#include <fcntl.h>
Expand Down

0 comments on commit f8f9fca

Please sign in to comment.