* FIXME: I don't think this is very efficient, but I thought I'd keep
* it simple for now until it proves to be a problem.
*/
-static int search_for_provides(int needle, int start_at) {
+static int search_for_provides(int needle, int start_at)
+{
int i, j;
common_node_t *p;
for (i = start_at + 1; i < PACKAGE_HASH_PRIME; i++) {
return 0;
}
-static void extract_cpio_gz(int fd) {
+static void extract_cpio_gz(int fd)
+{
archive_handle_t *archive_handle;
unsigned char magic[2];
#if ENABLE_SELINUX
static bool use_default_selinux_context = 1;
-static void setdefaultfilecon(const char *path) {
+static void setdefaultfilecon(const char *path)
+{
struct stat s;
security_context_t scontext = NULL;
static const char header_fmt[] = "\n==> %s <==\n";
-static unsigned eat_num(const char *p) {
+static unsigned eat_num(const char *p)
+{
if (*p == '-') p++;
else if (*p == '+') { p++; G.status = EXIT_FAILURE; }
return xatou_sfx(p, tail_suffixes);
#endif
#if defined(__dietlibc__)
-static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c) {
+static ATTRIBUTE_ALWAYS_INLINE char* strchrnul(const char *s, char c)
+{
while (*s && *s != c) ++s;
return (char*)s;
}
{SCHED_RR, "SCHED_RR"}
};
-static void show_min_max(int pol) {
+static void show_min_max(int pol)
+{
const char *fmt = "%s min/max priority\t: %d/%d\n\0%s not supported?\n";
int max, min;
max = sched_get_priority_max(pol);
return err_dma;
}
-static void print_ascii(uint16_t *p, uint8_t length) {
+static void print_ascii(uint16_t *p, uint8_t length)
+{
uint8_t ii;
char cl;
#define TIMEOUT_LONG 10
#define MAXERRORS 10
-static int read_byte(int fd, unsigned int timeout) {
+static int read_byte(int fd, unsigned int timeout)
+{
char buf[1];
int n;
* Check the matching between a pattern and a module name.
* We need this as *_* is equivalent to *-*, even in pattern matching.
*/
-static int check_pattern(const char* pat_src, const char* mod_src) {
+static int check_pattern(const char* pat_src, const char* mod_src)
+{
int ret;
if (ENABLE_FEATURE_MODPROBE_FANCY_ALIAS) {
return Q->ticks != P->ticks; /* 0 if ==, 1 if > */
}
-static int mult_lvl_cmp(void* a, void* b) {
+static int mult_lvl_cmp(void* a, void* b)
+{
int i, cmp_val;
for (i = 0; i < SORT_DEPTH; i++) {
#define WARN "warning: "
#define OK "ok: "
-static void fail(const char *m1) {
+static void fail(const char *m1)
+{
++rc;
out("fail: ", m1);
}
-static void failx(const char *m1) {
+static void failx(const char *m1)
+{
errno = 0;
fail(m1);
}
-static void warn_cannot(const char *m1) {
+static void warn_cannot(const char *m1)
+{
++rc;
out("warning: cannot ", m1);
}
-static void warnx_cannot(const char *m1) {
+static void warnx_cannot(const char *m1)
+{
errno = 0;
warn_cannot(m1);
}
-static void ok(const char *m1) {
+static void ok(const char *m1)
+{
errno = 0;
out(OK, m1);
}
{
bb_error_msg_and_die(FATAL"%s", m0);
}
-static void warn(const char *m0) {
+static void warn(const char *m0)
+{
bb_perror_msg(WARNING"%s", m0);
}
static void warn2(const char *m0, const char *m1)
return 0;
}
-static struct pipe *new_pipe(void) {
+static struct pipe *new_pipe(void)
+{
struct pipe *pi;
pi = xmalloc(sizeof(struct pipe));
pi->num_progs = 0;