break; \
} \
for (i_ = 1, argused_ = 0; (*argv)[i_]; i_++) { \
- switch((*argv)[i_])
+ switch ((*argv)[i_])
#define ARGEND if (argused_) { \
if ((*argv)[i_ + 1]) { \
break; \
} \
} \
}
-#define ARGC() ((*argv)[i_])
+#define ARGC() ((*argv)[i_])
#define ARGF_(x) (((*argv)[i_ + 1]) ? (argused_ = 1, &((*argv)[i_ + 1])) : \
(*(argv + 1)) ? (argused_ = 1, *(argv + 1)) : (x))
#define EARGF(x) ARGF_(((x), exit(1), (char *)0))
if (sysctlbyname(BATTERY_STATE, &state, &len, NULL, 0) < 0 || !len)
return NULL;
- switch(state) {
- case 0:
- case 2:
- return "+";
- case 1:
- return "-";
- default:
- return "?";
+ switch (state) {
+ case 0: /* FALLTHROUGH */
+ case 2:
+ return "+";
+ case 1:
+ return "-";
+ default:
+ return "?";
}
}
kvm_t *kd;
kd = kvm_openfiles(NULL, "/dev/null", NULL, 0, NULL);
- if(kd == NULL) {
+ if (kd == NULL) {
warn("kvm_openfiles '/dev/null':");
return 0;
}
struct kvm_swap swap_info[1];
long used, total;
- if(!getswapinfo(swap_info, 1))
+ if (!getswapinfo(swap_info, 1))
return NULL;
total = swap_info[0].ksw_total;
struct kvm_swap swap_info[1];
long used, total;
- if(!getswapinfo(swap_info, 1))
+ if (!getswapinfo(swap_info, 1))
return NULL;
total = swap_info[0].ksw_total;
struct kvm_swap swap_info[1];
long total;
- if(!getswapinfo(swap_info, 1))
+ if (!getswapinfo(swap_info, 1))
return NULL;
total = swap_info[0].ksw_total;
struct kvm_swap swap_info[1];
long used;
- if(!getswapinfo(swap_info, 1))
+ if (!getswapinfo(swap_info, 1))
return NULL;
used = swap_info[0].ksw_used;
fmt = NULL;
len = sizeof(ssid);
memset(&ssid, 0, len);
- if (load_ieee80211req(sockfd, interface, &ssid, IEEE80211_IOC_SSID, &len )) {
+ if (load_ieee80211req(sockfd, interface, &ssid, IEEE80211_IOC_SSID, &len)) {
if (len < sizeof(ssid))
len += 1;
else