Skip to content

Commit

Permalink
chore: portal-impl - fix linting issues to code style
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumyaRanjanPatnaik committed Jan 4, 2024
1 parent 9755553 commit 37d02f8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/portal-impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,12 @@ load_portal_configuration (gboolean opt_verbose)
}

PortalInterface *
find_matching_iface_config (const char *interface) {
find_matching_iface_config (const char *interface)
{
if (config == NULL)
return NULL;

for (int i = 0; i < config->n_ifaces; i++)
for (size_t i = 0; i < config->n_ifaces; i++)
{
PortalInterface *iface = config->interfaces[i];

Expand All @@ -505,8 +506,9 @@ find_matching_iface_config (const char *interface) {
}

static gboolean
portal_interface_prefers_none (const char *interface) {
const PortalInterface *iface = find_matching_iface_config(interface);
portal_interface_prefers_none (const char *interface)
{
const PortalInterface *iface = find_matching_iface_config (interface);

if (iface != NULL && g_strv_contains ((const char * const *) iface->portals, "none"))
{
Expand Down

0 comments on commit 37d02f8

Please sign in to comment.