From: Francois-Xavier Le Bail Date: Thu, 30 Dec 2021 19:07:18 +0000 (+0100) Subject: Put a space between type and '*' in pointer declarators (style) X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/794a259a335c367d852959cd88dd9d46d183a74b Put a space between type and '*' in pointer declarators (style) --- 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;