google / packetdrill

The official Google release of packetdrill
GNU General Public License v2.0
887 stars 220 forks source link

net-test: packetdrill: ensure consistency in coding style #37

Closed aesophor closed 3 years ago

aesophor commented 4 years ago

This commit removes coding style inconsistency in packet_parser.c. For instance:

ip = (struct ipv4 *)p;
ip = (struct ipv4 *) (p);
packet->udp = (struct udp *) p;

The above statements are changed into the following format (A whitespace is placed after the right parenthesis, and the parentheses around the variable name are removed):

ip = (struct ipv4 *) p;

Signed-off-by: Marco Wang m.aesophor@gmail.com