Browse Source

Increase visibility on return statements

Add an extra line before the last return statement for visibility.
tags/1.87
Per Andersson Gaudenz Steinlin 9 years ago
parent
commit
f3c018b6fb
3 changed files with 11 additions and 1 deletions
  1. +6
    -1
      netcfg-common.c
  2. +1
    -0
      wireless.c
  3. +4
    -0
      wpa_ctrl.c

+ 6
- 1
netcfg-common.c View File

@@ -187,8 +187,10 @@ int check_kill_switch(const char *iface)
out:
free(temp);
free(linkbuf);

if (fd != -1)
close(fd);

return ret;
}

@@ -780,6 +782,7 @@ int netcfg_get_interface(struct debconfclient *client, char **interface,
free(ptr);
free(old_selection);
*numif = 0;

return ret;
}
else if (num_interfaces == 1) {
@@ -997,6 +1000,7 @@ int netcfg_get_domain(struct debconfclient *client, char **domain)
++start; /* trim leading dots */
*domain = strdup(start);
}

return 0;
}

@@ -1266,7 +1270,8 @@ int netcfg_get_nameservers (struct debconfclient *client, char **nameservers)
*nameservers = NULL;
if (ptr)
*nameservers = strdup(ptr);
return ret;

return 0;
}

void netcfg_update_entropy (void)


+ 1
- 0
wireless.c View File

@@ -208,6 +208,7 @@ int netcfg_wireless_show_essids(struct debconfclient *client, char *iface)
* question. */
if (netcfg_wireless_choose_essid_manually(client, iface,
"netcfg/wireless_essid_again") == GO_BACK) {

return GO_BACK;
}



+ 4
- 0
wpa_ctrl.c View File

@@ -195,6 +195,7 @@ int wpa_ctrl_request(struct wpa_ctrl *ctrl, const char *cmd, size_t cmd_len,
return -2;
}
}

return 0;
}

@@ -211,6 +212,7 @@ static int wpa_ctrl_attach_helper(struct wpa_ctrl *ctrl, int attach)
return ret;
if (len == 3 && memcmp(buf, "OK\n", 3) == 0)
return 0;

return -1;
}

@@ -235,6 +237,7 @@ int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len)
if (res < 0)
return res;
*reply_len = res;

return 0;
}

@@ -248,6 +251,7 @@ int wpa_ctrl_pending(struct wpa_ctrl *ctrl)
FD_ZERO(&rfds);
FD_SET(ctrl->s, &rfds);
select(ctrl->s + 1, &rfds, NULL, NULL, &tv);

return FD_ISSET(ctrl->s, &rfds);
}



Loading…
Cancel
Save