diff options
| author | sri-mohan1 <sri.mohan@samsung.com> | 2023-06-08 23:19:43 +0530 |
|---|---|---|
| committer | sri-mohan1 <sri.mohan@samsung.com> | 2023-06-14 16:42:26 +0530 |
| commit | 8443d112b398ded67daaaffae0539ffa2a7118a4 (patch) | |
| tree | ab6c92fccca522a29296cb37247b647e0ed7f7c9 /ldpd/logmsg.c | |
| parent | 22c329ed32cd83ce54a1f1d014d8056d816cb28b (diff) | |
ldpd: changes for code maintainability
these changes are for improving the code maintainability and readability
Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
Diffstat (limited to 'ldpd/logmsg.c')
| -rw-r--r-- | ldpd/logmsg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ldpd/logmsg.c b/ldpd/logmsg.c index 4f1d950bb3..75f4293f0c 100644 --- a/ldpd/logmsg.c +++ b/ldpd/logmsg.c @@ -74,8 +74,7 @@ log_addr(int af, const union ldpd_addr *addr) switch (af) { case AF_INET: round = (round + 1) % NUM_LOGS; - if (inet_ntop(AF_INET, &addr->v4, buf[round], - sizeof(buf[round])) == NULL) + if (inet_ntop(AF_INET, &addr->v4, buf[round], sizeof(buf[round])) == NULL) return ("???"); return (buf[round]); case AF_INET6: @@ -166,8 +165,7 @@ log_hello_src(const struct hello_source *src) switch (src->type) { case HELLO_LINK: - snprintf(buf, sizeof(buf), "iface %s", - src->link.ia->iface->name); + snprintf(buf, sizeof(buf), "iface %s", src->link.ia->iface->name); break; case HELLO_TARGETED: snprintf(buf, sizeof(buf), "source %s", |
