mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
sysdep/unix/main.c: Remove trailing spaces
This commit is contained in:
parent
d33cf3f4c3
commit
1279a83103
@ -132,7 +132,7 @@ read_iproute_table(char *file, char *prefix, int max)
|
|||||||
|
|
||||||
if (*p == '#' || *p == '\n' || *p == 0)
|
if (*p == '#' || *p == '\n' || *p == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (sscanf(p, "0x%x %s\n", &val, name) != 2 &&
|
if (sscanf(p, "0x%x %s\n", &val, name) != 2 &&
|
||||||
sscanf(p, "0x%x %s #", &val, name) != 2 &&
|
sscanf(p, "0x%x %s #", &val, name) != 2 &&
|
||||||
sscanf(p, "%d %s\n", &val, name) != 2 &&
|
sscanf(p, "%d %s\n", &val, name) != 2 &&
|
||||||
@ -522,7 +522,7 @@ write_pid_file(void)
|
|||||||
rv = ftruncate(pid_fd, 0);
|
rv = ftruncate(pid_fd, 0);
|
||||||
if (rv < 0)
|
if (rv < 0)
|
||||||
die("fruncate: %m");
|
die("fruncate: %m");
|
||||||
|
|
||||||
rv = write(pid_fd, ps, pl);
|
rv = write(pid_fd, ps, pl);
|
||||||
if(rv < 0)
|
if(rv < 0)
|
||||||
die("write: %m");
|
die("write: %m");
|
||||||
|
Loading…
Reference in New Issue
Block a user