Skip to content

Commit

Permalink
add an empty line to the end of each file to suppress compiler warnin…
Browse files Browse the repository at this point in the history
…gs under win32/cygwin. refs appneta#110
  • Loading branch information
synfinatic committed Mar 22, 2007
1 parent 3ab84ba commit 2ad0b4a
Show file tree
Hide file tree
Showing 101 changed files with 112 additions and 25 deletions.
1 change: 1 addition & 0 deletions src/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,4 @@ live_callback(struct live_data_t *livedata, struct pcap_pkthdr *pkthdr,
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ void do_bridge(tcpedit_t *, pcap_t *, pcap_t *);
End:
*/


1 change: 1 addition & 0 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@
const char *svn_version(void); /* svn_version.c */

#endif

1 change: 1 addition & 0 deletions src/common/abort.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ break_now(int signo)
End:
*/


1 change: 1 addition & 0 deletions src/common/abort.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ void break_now(int signo);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,4 @@ check_cache(char *cachedata, COUNTER packetid)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ tcpr_dir_t check_cache(char *, COUNTER);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/cidr.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,3 +517,4 @@ cidr2iplist(tcpr_cidr_t * cidr, char delim)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/cidr.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ char *cidr2iplist(tcpr_cidr_t *, char);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/dlt_names.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,3 +506,4 @@ char *dlt2name[] = {
"Unknown",
NULL
};

1 change: 1 addition & 0 deletions src/common/dlt_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,4 @@ extern const char *dlt2name[];
#define DLT_JUNIPER_CHDLC 181
#endif


1 change: 1 addition & 0 deletions src/common/err.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,4 @@ _our_verbose_warnx(const char *fmt, ...) {
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/err.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ void _our_verbose_warnx(const char *fmt, ...);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/fakepcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@ pcap_datalink_val_to_name(int dlt)
End:
*/


1 change: 1 addition & 0 deletions src/common/fakepcap.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ const char *pcap_datalink_val_to_name(int dlt);
End:
*/


1 change: 1 addition & 0 deletions src/common/fakepcapnav.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@ pcapnav_pcap(pcapnav_t * pcapnav)
End:
*/


1 change: 1 addition & 0 deletions src/common/fakepcapnav.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ pcap_t *pcapnav_pcap(pcapnav_t *);
End:
*/


1 change: 1 addition & 0 deletions src/common/fakepoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,4 @@ poll(struct pollfd *ufds, unsigned int nfds, int timeout)
End:
*/


1 change: 1 addition & 0 deletions src/common/fakepoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ int poll(struct pollfd *ufds, unsigned int nfds, int timeout);
End:
*/


1 change: 1 addition & 0 deletions src/common/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,4 @@ get_addr2name4(const u_int32_t ip, u_int8_t dnslookup)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/get.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ const char *get_pcap_version(void);
c-basic-offset:4
End:
*/

4 changes: 2 additions & 2 deletions src/common/interface.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id:$ */
/* $Id$ */

/*
* Copyright (c) 2007 Aaron Turner.
Expand Down Expand Up @@ -140,4 +140,4 @@ list_interfaces(interface_list_t *list)
}
ptr = ptr->next;
} while (ptr != NULL);
}
}
2 changes: 1 addition & 1 deletion src/common/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ char *get_interface(interface_list_t *, const char *);
interface_list_t *get_interface_list(void);
void list_interfaces(interface_list_t *);

#endif
#endif
1 change: 1 addition & 0 deletions src/common/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,4 @@ free_list(tcpr_list_t * list)
End:
*/


1 change: 1 addition & 0 deletions src/common/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ void free_list(tcpr_list_t *);
End:
*/


1 change: 1 addition & 0 deletions src/common/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ macinstring(const char *macstring, const u_char *mac)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ tcpr_dir_t macinstring(const char *macstring, const u_char *mac);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/pcap_dlt.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ typedef struct hdlc_hdr_s hdlc_hdr_t;

#endif /* _PCAP_DLT_H_ */


1 change: 1 addition & 0 deletions src/common/sendpacket.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,3 +738,4 @@ sendpacket_get_dlt(sendpacket_t *sp)
return dlt;
}


1 change: 1 addition & 0 deletions src/common/sendpacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ int sendpacket_get_dlt(sendpacket_t *);

#endif /* _SENDPACKET_H_ */


1 change: 1 addition & 0 deletions src/common/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@ parse_services(const char *file, tcpr_services_t *services)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/services.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ void parse_services(const char *file, tcpr_services_t *services);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/tcpdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,4 @@ can_exec(const char *filename)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/tcpdump.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ void tcpdump_close(tcpdump_t *tcpdump);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ float2timer(float time, struct timeval *tvp)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ inline void float2timer(float time, struct timeval *tvp);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,4 @@ argv_create(char *p, int argc, char *argv[])
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ char *_our_safe_strdup(const char *str, const char *, const int, const char *);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/xX.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,4 @@ process_xX_by_cidr(int mode, tcpr_cidr_t * cidr, ipv4_hdr_t * ip_hdr)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/common/xX.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ int process_xX_by_cidr(int, tcpr_cidr_t *, ipv4_hdr_t *);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/flow/flowbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ nextbuffpkt(struct session_t *node, u_int32_t len)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/flow/flowbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ const u_char *nextbuffpkt(struct session_t *, u_int32_t);
End:
*/


1 change: 1 addition & 0 deletions src/flow/flowkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,4 @@ pkeygen(u_char key[])
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/flow/flowkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ u_int64_t pkeygen(u_char[]);
End:
*/


1 change: 1 addition & 0 deletions src/flow/flownode.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,4 @@ close_sockets(void)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/flow/flownode.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ void close_sockets(void);
End:
*/


1 change: 1 addition & 0 deletions src/flow/flowstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ tcp_state(tcp_hdr_t * tcp_hdr, struct session_t *node)
End:
*/


1 change: 1 addition & 0 deletions src/flow/flowstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ u_int32_t tcp_state(tcp_hdr_t * tcp_hdr, struct session_t *node);
End:
*/


1 change: 1 addition & 0 deletions src/flowreplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,3 +468,4 @@ cleanup(void)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/flowreplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ typedef struct flowreplay_opt_s flowreplay_opt_t;
End:
*/


1 change: 1 addition & 0 deletions src/send_packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,4 @@ sleep_loop(struct timeval time)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/send_packets.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ void *cache_mode(char *, COUNTER);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/signal_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@ continue_handler(int signo)
End:
*/


1 change: 1 addition & 0 deletions src/signal_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ void continue_handler(int signo);
End:
*/


1 change: 1 addition & 0 deletions src/tcpbridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,4 @@ post_args(__attribute__((unused)) int argc, __attribute__((unused)) char *argv[]
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/tcpbridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@ typedef struct tcpbridge_opt_s tcpbridge_opt_t;
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/tcpedit/checksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,4 @@ do_checksum_math(u_int16_t *data, int len)

return (sum);
}

2 changes: 1 addition & 1 deletion src/tcpedit/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@

int do_checksum(tcpedit_t *, u_int8_t *, int, int);

#endif
#endif
1 change: 1 addition & 0 deletions src/tcpedit/dlt.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ layer2len(tcpedit_t *tcpedit)

return tcpedit->dlt_ctx->l2len;
}

1 change: 1 addition & 0 deletions src/tcpedit/dlt.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ int layer2len(tcpedit_t *tcpedit);

#endif /* _DLT_H_ */


1 change: 1 addition & 0 deletions src/tcpedit/edit_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,3 +574,4 @@ is_unicast_ipv4(tcpedit_t *tcpedit, u_int32_t ip)
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/tcpedit/edit_packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ int rewrite_iparp(tcpedit_t *tcpedit, arp_hdr_t *arp_hdr, int direction);
c-basic-offset:4
End:
*/

1 change: 1 addition & 0 deletions src/tcpedit/parse_args.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,4 @@ tcpedit_post_args(tcpedit_t **tcpedit_ex) {
return rcode;
}


1 change: 1 addition & 0 deletions src/tcpedit/parse_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@
int tcpedit_post_args(tcpedit_t **tcpedit_ex);

#endif

2 changes: 1 addition & 1 deletion src/tcpedit/plugins/dlt_en10mb/en10mb.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,4 +600,4 @@ tcpeditdlt_l2addr_type_t
dlt_en10mb_l2addr_type(void)
{
return ETHERNET;
}
}
1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_en10mb/en10mb.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ struct en10mb_config_s {
typedef struct en10mb_config_s en10mb_config_t;

#endif

1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_hdlc/hdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,4 @@ dlt_hdlc_l2addr_type(void)
{
return C_HDLC;
}

1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_hdlc/hdlc.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ struct cisco_hdlc_s {
};
typedef struct cisco_hdlc_s cisco_hdlc_t;
#endif

1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_linuxsll/linuxsll.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,3 +297,4 @@ dlt_linuxsll_l2addr_type(void)
/* we only support ethernet packets */
return ETHERNET;
}

1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_linuxsll/linuxsll.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ struct linux_sll_header_s {
typedef struct linux_sll_header_s linux_sll_header_t;

#endif

2 changes: 1 addition & 1 deletion src/tcpedit/plugins/dlt_loop/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ dlt_loop_init(tcpeditdlt_t *ctx)
}


/* that's all folks! */
/* that's all folks! */
1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_loop/loop.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ int dlt_loop_init(tcpeditdlt_t *ctx);
/* empty because we use DLT_NULL */

#endif

1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_null/null.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,4 @@ dlt_null_l2addr_type(void)
{
return NONE;
}

1 change: 1 addition & 0 deletions src/tcpedit/plugins/dlt_null/null.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ struct null_config_s {
typedef struct null_config_s null_config_t;

#endif

4 changes: 2 additions & 2 deletions src/tcpedit/plugins/dlt_plugins-int.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id:$ */
/* $Id$ */

/*
* Copyright (c) 2006-2007 Aaron Turner.
Expand Down Expand Up @@ -133,4 +133,4 @@ struct tcpeditdlt_s {
void *decoded_extra; /* any extra L2 data from decoder like VLAN tags */
};

#endif
#endif
Loading

0 comments on commit 2ad0b4a

Please sign in to comment.