style fixes, no code changes
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 16 Apr 2007 22:32:04 +0000 (22:32 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 16 Apr 2007 22:32:04 +0000 (22:32 -0000)
13 files changed:
archival/dpkg.c
archival/rpm.c
coreutils/install.c
coreutils/tail.c
include/platform.h
miscutils/chrt.c
miscutils/hdparm.c
miscutils/rx.c
modutils/modprobe.c
procps/top.c
runit/sv.c
runit/svlogd.c
shell/hush.c

index c5deb0f7134530bb1f23b250bd53bcab3552bf5e..7d31ad12e272beb4568f6e9f30614e2d736fc5db 100644 (file)
@@ -352,7 +352,8 @@ static int search_package_hashtable(const unsigned name, const unsigned version,
  * 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++) {
index a48dda3bcd1d456698db670baff8c1f36f65e659..654a4a3812b425a67554455eaaf26ac5c05fc151 100644 (file)
@@ -185,7 +185,8 @@ int rpm_main(int argc, char **argv)
        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];
 
index c80be01ff4e438bce748f01b79a4ed8608f835bd..ece5b955b2259e30b4409e42def1b06b6655ff60 100644 (file)
@@ -35,7 +35,8 @@ static const struct option install_long_options[] = {
 #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;
 
index 67396ab1c52456c60f8aebf66d3fcf6a3cefb604..629ee212534a406f0410f323b7c7e666585160c2 100644 (file)
@@ -65,7 +65,8 @@ static ssize_t tail_read(int fd, char *buf, size_t count)
 
 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);
index 0adbed4e7beeaefe37089879d9a39a2f497643c8..ad3cc93328cc5a0f7d60be256680ce8949bf27d8 100644 (file)
@@ -234,7 +234,8 @@ typedef unsigned smalluint;
 #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;
 }
index 75d77d536ad4f67e468626ab6e4ef89676deb76b..f52c3cd1b963b1d301cfdb764d9aa8d4cf9b8b08 100644 (file)
@@ -22,7 +22,8 @@ static const struct {
        {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);
index cc33a010a3f1254b5ea15158e7a583b6862b5a39..c540ff93c85e0fbec8a715892cb4650856428c85 100644 (file)
@@ -517,7 +517,8 @@ static uint8_t mode_loop(uint16_t mode_sup, uint16_t mode_sel, int cc, uint8_t *
        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;
 
index 29848b1d9f2b110433ef82b67c39a5e7c1903d8f..6e79f3438484d2884ec0c597b56df7fa986eab6c 100644 (file)
@@ -43,7 +43,8 @@ Cf:
 #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;
 
index d6a9553d56e59e75c16ba57439401d6fe7f10776..4c5e4365616e576b29af83b9bc0c04eb98d6d4dd 100644 (file)
@@ -669,7 +669,8 @@ static int mod_process(const struct mod_list_t *list, int do_insert)
  * 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) {
index ee6ee5d5c6a1b19644639de603a15906213ddb96..7d30936a8a5a4c12b268d6971d8cc4021ab24660 100644 (file)
@@ -103,7 +103,8 @@ static int time_sort(top_status_t *P, top_status_t *Q)
        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++) {
index d52eb6d228f8fe51f442ded82728e1722847ce01..01488c06094ba77ddd88ae50a31170037a886dce 100644 (file)
@@ -183,23 +183,28 @@ static void out(const char *p, const char *m1)
 #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);
 }
index 1d662556125bdfacda9bf43217aeca035ddfd57d..c2cff96790d9693ad984e05dea4d5f311ca89468 100644 (file)
@@ -92,7 +92,8 @@ static void fatalx(const char *m0)
 {
        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)
index 0b5e2a5de7960742cfa20307eda18e74ae367d83..9489fb276ee902686522ea4696b20bf95f3c03b9 100644 (file)
@@ -1953,7 +1953,8 @@ static int setup_redirect(struct p_context *ctx, int fd, redir_type style,
        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;