Repository : ssh://git@diktynna/alfred On branches: main,main
commit 2b908d04dc181e9ce2277edf59c4e8e8b3bc38df Author: Sven Eckelmann sven@narfation.org Date: Sat Jan 4 09:49:17 2025 +0100
alfred: Fix misaligned start of lines
Signed-off-by: Sven Eckelmann sven@narfation.org
2b908d04dc181e9ce2277edf59c4e8e8b3bc38df client.c | 2 +- gpsd/alfred-gpsd.c | 2 +- vis/vis.c | 2 +- vis/vis.h | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/client.c b/client.c index ace42b9..2676e32 100644 --- a/client.c +++ b/client.c @@ -433,7 +433,7 @@ int alfred_client_server_status(struct globals *globals) status_net_iface->net_iface[sizeof(status_net_iface->net_iface) - 1] = 0; printf("- interface: %s\n", status_net_iface->net_iface); printf("\t- status: %s\n", - status_net_iface->active == 1 ? "active" : "inactive"); + status_net_iface->active == 1 ? "active" : "inactive"); break; case ALFRED_SERVER_BAT_IFACE: if (tlvsize != sizeof(*status_bat_iface)) diff --git a/gpsd/alfred-gpsd.c b/gpsd/alfred-gpsd.c index d0bd47c..fd87e0b 100644 --- a/gpsd/alfred-gpsd.c +++ b/gpsd/alfred-gpsd.c @@ -508,7 +508,7 @@ static int gpsd_server(struct globals *globals) FD_ZERO(&fds);
if (globals->source == SOURCE_GPSD && - globals->gpsdata.gps_fd != -1) { + globals->gpsdata.gps_fd != -1) { FD_SET(globals->gpsdata.gps_fd, &fds); max_fd = globals->gpsdata.gps_fd + 1; } else { diff --git a/vis/vis.c b/vis/vis.c index 387d166..b3366bc 100644 --- a/vis/vis.c +++ b/vis/vis.c @@ -379,7 +379,7 @@ static char *get_iface_status_netlink(unsigned int meshif, unsigned int hardif, goto err_free_sock;
nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, get_iface_status_netlink_parse, - iface_status); + iface_status);
msg = nlmsg_alloc(); if (!msg) diff --git a/vis/vis.h b/vis/vis.h index ae695e5..5537fc7 100644 --- a/vis/vis.h +++ b/vis/vis.h @@ -69,8 +69,8 @@ struct vis_list_entry { };
#define VIS_DATA_SIZE(vis_data) \ - (sizeof(*vis_data) + (vis_data)->iface_n * sizeof(struct vis_iface) \ - + (vis_data)->entries_n * sizeof(struct vis_entry)) + (sizeof(*vis_data) + (vis_data)->iface_n * sizeof(struct vis_iface) + \ + (vis_data)->entries_n * sizeof(struct vis_entry))
struct globals { const char *interface;