tree-wide: make ++/-- usage consistent WRT spacing
Throughout the tree there's spurious use of spaces separating ++ and -- operators from their respective operands. Make ++ and -- operator consistent with the majority of existing uses; discard the spaces.
This commit is contained in:
@@ -34,7 +34,7 @@ static int option_append(uint8_t options[], size_t size, size_t *offset,
|
||||
|
||||
if (code != SD_DHCP_OPTION_END)
|
||||
/* always make sure there is space for an END option */
|
||||
size --;
|
||||
size--;
|
||||
|
||||
switch (code) {
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ uint16_t dhcp_packet_checksum(uint8_t *buf, size_t len) {
|
||||
/* wrap around in one's complement */
|
||||
sum++;
|
||||
|
||||
buf_64 ++;
|
||||
buf_64++;
|
||||
}
|
||||
|
||||
if (len % sizeof(uint64_t)) {
|
||||
|
||||
@@ -375,7 +375,7 @@ int deserialize_in_addrs(struct in_addr **ret, const char *string) {
|
||||
if (r <= 0)
|
||||
continue;
|
||||
|
||||
size ++;
|
||||
size++;
|
||||
}
|
||||
|
||||
*ret = addresses;
|
||||
|
||||
Reference in New Issue
Block a user