]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Put a space between type and '*' in pointer declarators (style)
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 30 Dec 2021 19:07:18 +0000 (20:07 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 30 Dec 2021 19:23:13 +0000 (20:23 +0100)
missing/snprintf.c
missing/win_ether_ntohost.c
netdissect-stdinc.h
print-bt.c
print-dccp.c
print-isakmp.c

index 2f12cf1635e9b066bbe3eb621c9c2f9f7181573b..dfff6ee08861318e4463e75ad4ce3190132ffb0f 100644 (file)
@@ -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;
       }
index 05930923af83612ab303e9aa7c68eff78726c53b..17bff1168983a94a0fc9f59816743ea101ab1e0a 100644 (file)
@@ -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;
 
index cd273371483282e80fbe8a2390da69d2871aec5a..e81c90bd590b080dfb3f66ef24dfc5ae982d90b8 100644 (file)
 #endif
 
 #ifndef caddr_t
-typedef charcaddr_t;
+typedef char *caddr_t;
 #endif /* caddr_t */
 
 #define MAXHOSTNAMELEN 64
index 131bc7119683b8be1201119b34172eec4fefe117..46aa2782aeb58be8a320b809e7408e83858a300e 100644 (file)
@@ -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);
index 80951cf060a1aaa5427c70727cd7aa99d35a3306..e82b93819f4c297bb5e212e99915afc91217782f 100644 (file)
@@ -189,7 +189,7 @@ static const struct tok dccp_feature_num_str[] = {
 
 static u_int
 dccp_csum_coverage(netdissect_options *ndo,
-                  const struct dccp_hdrdh, u_int len)
+                  const struct dccp_hdr *dh, u_int len)
 {
        u_int cov;
 
index 52bf1fda5216d1f50e67120a1c015c4f90b43c06..f3cb34289e98c587cd55f96e709a924cd385fcdb 100644 (file)
@@ -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;