summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2021-12-30 20:07:18 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2021-12-30 20:23:13 +0100
commit794a259a335c367d852959cd88dd9d46d183a74b (patch)
treed79ec8de556e64adbb49058f42da875b198d7c98
parent21a357a5319106b7a26d4af4c2a71e09a6cd35d4 (diff)
downloadtcpdump-794a259a335c367d852959cd88dd9d46d183a74b.tar.gz
Put a space between type and '*' in pointer declarators (style)
-rw-r--r--missing/snprintf.c2
-rw-r--r--missing/win_ether_ntohost.c2
-rw-r--r--netdissect-stdinc.h2
-rw-r--r--print-bt.c2
-rw-r--r--print-dccp.c2
-rw-r--r--print-isakmp.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/missing/snprintf.c b/missing/snprintf.c
index 2f12cf16..dfff6ee0 100644
--- a/missing/snprintf.c
+++ b/missing/snprintf.c
@@ -411,7 +411,7 @@ xyzprintf (struct state *state, const char *char_format, va_list ap)
break;
}
case 'n' : {
- int *arg = va_arg(ap, int*);
+ int *arg = va_arg(ap, int *);
*arg = state->s - state->str;
break;
}
diff --git a/missing/win_ether_ntohost.c b/missing/win_ether_ntohost.c
index 05930923..17bff116 100644
--- a/missing/win_ether_ntohost.c
+++ b/missing/win_ether_ntohost.c
@@ -106,7 +106,7 @@ int parse_ether_buf (const char *buf, char **result, struct ether_addr *e)
{
const char *fmt;
char *name;
- char *str = (char*)buf;
+ char *str = (char *)buf;
unsigned eth [sizeof(*e)];
int i;
diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h
index cd273371..e81c90bd 100644
--- a/netdissect-stdinc.h
+++ b/netdissect-stdinc.h
@@ -217,7 +217,7 @@
#endif
#ifndef caddr_t
-typedef char* caddr_t;
+typedef char *caddr_t;
#endif /* caddr_t */
#define MAXHOSTNAMELEN 64
diff --git a/print-bt.c b/print-bt.c
index 131bc711..46aa2782 100644
--- a/print-bt.c
+++ b/print-bt.c
@@ -52,7 +52,7 @@ bt_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *
{
u_int length = h->len;
u_int caplen = h->caplen;
- const bluetooth_h4_header* hdr = (const bluetooth_h4_header*)p;
+ const bluetooth_h4_header *hdr = (const bluetooth_h4_header *)p;
ndo->ndo_protocol = "bluetooth";
nd_print_protocol(ndo);
diff --git a/print-dccp.c b/print-dccp.c
index 80951cf0..e82b9381 100644
--- a/print-dccp.c
+++ b/print-dccp.c
@@ -189,7 +189,7 @@ static const struct tok dccp_feature_num_str[] = {
static u_int
dccp_csum_coverage(netdissect_options *ndo,
- const struct dccp_hdr* dh, u_int len)
+ const struct dccp_hdr *dh, u_int len)
{
u_int cov;
diff --git a/print-isakmp.c b/print-isakmp.c
index 52bf1fda..f3cb3428 100644
--- a/print-isakmp.c
+++ b/print-isakmp.c
@@ -2309,7 +2309,7 @@ ikev2_auth_print(netdissect_options *ndo, u_char tpay,
const struct ikev2_auth *p;
const char *v2_auth[]={ "invalid", "rsasig",
"shared-secret", "dsssig" };
- const u_char *authdata = (const u_char*)ext + sizeof(struct ikev2_auth);
+ const u_char *authdata = (const u_char *)ext + sizeof(struct ikev2_auth);
ND_TCHECK_LEN(ext, sizeof(struct ikev2_auth));
p = (const struct ikev2_auth *)ext;