summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/net/link-config.c2
-rw-r--r--src/udev/udev-builtin-net_id.c2
-rw-r--r--src/udev/udev-ctrl.c2
-rw-r--r--src/udev/udev-rules.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 738954c728..f25afa60c7 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -334,7 +334,7 @@ static int get_mac(struct udev_device *device, bool want_random, struct ether_ad
srandom(seed);
- for(i = 0; i < ETH_ALEN; i++) {
+ for (i = 0; i < ETH_ALEN; i++) {
mac->ether_addr_octet[i] = random();
}
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
index 9ae8f08ccf..b859a6b9d5 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -159,7 +159,7 @@ static bool is_pci_multifunction(struct udev_device *dev) {
if ((config[PCI_HEADER_TYPE] & 0x80) != 0)
multi = true;
out:
- if(f)
+ if (f)
fclose(f);
return multi;
}
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c
index 9e503001bb..4bb0ceafe7 100644
--- a/src/udev/udev-ctrl.c
+++ b/src/udev/udev-ctrl.c
@@ -359,7 +359,7 @@ struct udev_ctrl_msg *udev_ctrl_receive_msg(struct udev_ctrl_connection *conn)
udev_ctrl_connection_ref(conn);
/* wait for the incoming message */
- for(;;) {
+ for (;;) {
struct pollfd pfd[1];
int r;
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 9154700bfa..f793e57712 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -431,7 +431,7 @@ static void dump_rules(struct udev_rules *rules)
rules->token_cur * sizeof(struct token),
rules->buf_count,
rules->buf_cur);
- for(i = 0; i < rules->token_cur; i++)
+ for (i = 0; i < rules->token_cur; i++)
dump_token(rules, &rules->tokens[i]);
}
#else