Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from kmkaplan/master

Consider for inclusion.
  • Loading branch information...
commit a45280fcd16827375ca69a6d51c3946700295aab 2 parents b67bc52 + 0077085
@kmkaplan kmkaplan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 DNSmezzo/packets2postgresql.c
View
4 DNSmezzo/packets2postgresql.c
@@ -232,7 +232,7 @@ main(int argc, char *argv[])
char *filename, *ct, *hostname[MAX_NAME], errbuf[PCAP_ERRBUF_SIZE];
pcap_parser_file *inputfile;
struct dns_packet *packet;
- char ch;
+ int ch;
unsigned long packetnum = 0;
/* PostgreSQL-related variables */
@@ -250,7 +250,7 @@ main(int argc, char *argv[])
unsigned int file_id;
progname = argv[0];
- while ((ch = (char) getopt(argc, argv, "nvm:c:p")) != -1) {
+ while ((ch = getopt(argc, argv, "nvm:c:p")) != -1) {
switch (ch) {
case 'v':
verbose = true;
Please sign in to comment.
Something went wrong with that request. Please try again.