style fixes, no code changes
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 26 Jun 2008 14:32:57 +0000 (14:32 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 26 Jun 2008 14:32:57 +0000 (14:32 -0000)
archival/libunarchive/decompress_bunzip2.c
archival/unzip.c
e2fsprogs/old_e2fsprogs/blkid/probe.c
e2fsprogs/old_e2fsprogs/mke2fs.c
editors/patch.c
miscutils/devfsd.c
modutils/insmod.c
shell/bbsh.c
util-linux/fdisk.c
util-linux/getopt.c
util-linux/volume_id/util.c

index 8f35bc5f9a4839a01b814564debe1e7adaf7c959..6da09fc1b239fd2637b6394e4ce2982d4926543a 100644 (file)
@@ -761,9 +761,9 @@ int main(int argc, char **argv)
        char c;
 
        if (i < 0)
-               fprintf(stderr,"%s\n", bunzip_errors[-i]);
+               fprintf(stderr, "%s\n", bunzip_errors[-i]);
        else if (read(STDIN_FILENO, &c, 1))
-               fprintf(stderr,"Trailing garbage ignored\n");
+               fprintf(stderr, "Trailing garbage ignored\n");
        return -i;
 }
 #endif
index c7d39daefc8f5bbfcddd91d3b83cc97819f2f80a..2c8971295ca71634d60592460b336997cbfbb484 100644 (file)
@@ -308,7 +308,7 @@ int unzip_main(int argc, char **argv)
                        } else if (last_char_is(dst_fn, '/')) { /* Extract directory */
                                if (stat(dst_fn, &stat_buf) == -1) {
                                        if (errno != ENOENT) {
-                                               bb_perror_msg_and_die("cannot stat '%s'",dst_fn);
+                                               bb_perror_msg_and_die("cannot stat '%s'", dst_fn);
                                        }
                                        if (verbose) {
                                                printf("   creating: %s\n", dst_fn);
@@ -328,7 +328,7 @@ int unzip_main(int argc, char **argv)
  _check_file:
                                if (stat(dst_fn, &stat_buf) == -1) { /* File does not exist */
                                        if (errno != ENOENT) {
-                                               bb_perror_msg_and_die("cannot stat '%s'",dst_fn);
+                                               bb_perror_msg_and_die("cannot stat '%s'", dst_fn);
                                        }
                                        i = 'y';
                                } else { /* File already exists */
@@ -345,7 +345,7 @@ int unzip_main(int argc, char **argv)
                                                        i = key_buf[0];
                                                }
                                        } else { /* File is not regular file */
-                                               bb_error_msg_and_die("'%s' exists but is not regular file",dst_fn);
+                                               bb_error_msg_and_die("'%s' exists but is not regular file", dst_fn);
                                        }
                                }
                        }
index 453b4d04a2bdeccfb59ff86380d9273c24454d9b..48b240e98e8269577ee0c054e081a06a971979e1 100644 (file)
@@ -429,9 +429,9 @@ static int probe_ocfs(int fd __BLKID_ATTR((unused)),
 
        major = ocfsmajor(ovh);
        if (major == 1)
-               blkid_set_tag(dev,"SEC_TYPE","ocfs1",sizeof("ocfs1"));
+               blkid_set_tag(dev, "SEC_TYPE", "ocfs1", sizeof("ocfs1"));
        else if (major >= 9)
-               blkid_set_tag(dev,"SEC_TYPE","ntocfs",sizeof("ntocfs"));
+               blkid_set_tag(dev, "SEC_TYPE", "ntocfs", sizeof("ntocfs"));
 
        blkid_set_tag(dev, "LABEL", (const char*)ovl.label, ocfslabellen(ovl));
        blkid_set_tag(dev, "MOUNT", (const char*)ovh.mount, ocfsmountlen(ovh));
index 89b5223b798eb436c8cddd6f09428400b48badcb..e16fe93e8fd812b8cab862a60b1492ce4e1eefb6 100644 (file)
@@ -176,7 +176,7 @@ static void mke2fs_error_msg_and_die(int retval, const char *fmt, ...)
 
        if (retval) {
                va_start(ap, fmt);
-               fprintf(stderr,"\nCould not ");
+               fprintf(stderr, "\nCould not ");
                vfprintf(stderr, fmt, ap);
                fprintf(stderr, "\n");
                va_end(ap);
@@ -209,7 +209,7 @@ static void mke2fs_warning_msg(int retval, char *fmt, ... )
 
        if (retval) {
                va_start(ap, fmt);
-               fprintf(stderr,"\nWarning: ");
+               fprintf(stderr, "\nWarning: ");
                vfprintf(stderr, fmt, ap);
                fprintf(stderr, "\n");
                va_end(ap);
index 1c9e97005b6eb1e5b745c91e8013526604db31c3..2bc594d163d2e79ae969142faf571a1a22ffbde1 100644 (file)
@@ -50,7 +50,7 @@ static char *extract_filename(char *line, int patch_level, const char *pat)
 
        if (strncmp(line, pat, 4) == 0) {
                /* Terminate string at end of source filename */
-               line[strcspn(line,"\t\n\r")] = '\0';
+               line[strcspn(line, "\t\n\r")] = '\0';
 
                /* Skip over (patch_level) number of leading directories */
                while (patch_level--) {
index 782457ac7fb26d9cd0768da4cafdbeff44c34a6a..ffc595ac91591f4e119e86b8f629440c743efe1c 100644 (file)
@@ -1091,7 +1091,7 @@ static int get_uid_gid(int flag, const char *string)
                msg = "group";
 
        if (ENABLE_DEVFSD_VERBOSE)
-               msg_logger(LOG_ERR,"unknown %s: %s, defaulting to %cid=0",  msg, string, msg[0]);
+               msg_logger(LOG_ERR, "unknown %s: %s, defaulting to %cid=0",  msg, string, msg[0]);
        return 0;
 }/*  End Function get_uid_gid  */
 
@@ -1732,7 +1732,7 @@ static const char *expand_variable(char *buffer, unsigned int length,
                                --open_braces;
                                break;
                        case '\0':
-                               info_logger(LOG_INFO,"\"}\" not found in: %s", input);
+                               info_logger(LOG_INFO, "\"}\" not found in: %s", input);
                                return NULL;
                        default:
                                break;
index 3fbb02b75c9b3fde1cb910c4381aab0cf16370ee..4ac1a1e1ba405f10d6c4db07df01f4ccb18c739f 100644 (file)
@@ -2893,7 +2893,7 @@ new_init_module(const char *m_name, struct obj_file *f, unsigned long m_size)
 
        sec = obj_find_section(f, ".this");
        if (!sec || !sec->contents) {
-               bb_perror_msg_and_die("corrupt module %s?",m_name);
+               bb_perror_msg_and_die("corrupt module %s?", m_name);
        }
        module = (struct new_module *) sec->contents;
        m_addr = sec->header.sh_addr;
index 5386bb097d5be0fad5c558ae2085bc0d8796defa..3be64eec7a9b989ade0d9b40a98b920c133c7284 100644 (file)
@@ -167,7 +167,7 @@ static int run_pipeline(struct pipeline *line)
                if (!pid) {
                        run_applet_and_exit(cmd->argv[0],cmd->argc,cmd->argv);
                        execvp(cmd->argv[0],cmd->argv);
-                       printf("No %s",cmd->argv[0]);
+                       printf("No %s", cmd->argv[0]);
                        exit(EXIT_FAILURE);
                } else waitpid(pid, &status, 0);
        }
index 5871a065a54b7429a27272f99b5fab908fb3d925..4034ca555595055072b0d3b72f9d74b36b217d60 100644 (file)
@@ -1807,7 +1807,7 @@ check_consistency(const struct partition *p, int partition)
                printf("Partition %d has different physical/logical "
                        "beginnings (non-Linux?):\n", partition + 1);
                printf("     phys=(%d, %d, %d) ", pbc, pbh, pbs);
-               printf("logical=(%d, %d, %d)\n",lbc, lbh, lbs);
+               printf("logical=(%d, %d, %d)\n", lbc, lbh, lbs);
        }
 
 /* Same physical / logical ending? */
index e3b4ca6259142089682995b162dfcfed76dfb39d..bdf5f971640f42c3736bfc3acb55b390aae43817 100644 (file)
@@ -255,9 +255,9 @@ static struct option *add_long_options(struct option *long_options, char *option
 
 static void set_shell(const char *new_shell)
 {
-       if (!strcmp(new_shell,"bash") || !strcmp(new_shell,"sh"))
+       if (!strcmp(new_shell, "bash") || !strcmp(new_shell, "sh"))
                return;
-       if (!strcmp(new_shell,"tcsh") || !strcmp(new_shell,"csh"))
+       if (!strcmp(new_shell, "tcsh") || !strcmp(new_shell, "csh"))
                option_mask32 |= SHELL_IS_TCSH;
        else
                bb_error_msg("unknown shell '%s', assuming bash", new_shell);
index 240b3c1e37651357b7660d0c7729a58d15a7ad4a..315d75ca6e6842cc2ade90ec8450bd7ef27dd9bf 100644 (file)
@@ -165,12 +165,12 @@ set:
                        buf[3], buf[2], buf[1], buf[0]);
                break;
        case UUID_NTFS:
-               sprintf(id->uuid,"%02X%02X%02X%02X%02X%02X%02X%02X",
+               sprintf(id->uuid, "%02X%02X%02X%02X%02X%02X%02X%02X",
                        buf[7], buf[6], buf[5], buf[4],
                        buf[3], buf[2], buf[1], buf[0]);
                break;
        case UUID_HFS:
-               sprintf(id->uuid,"%02X%02X%02X%02X%02X%02X%02X%02X",
+               sprintf(id->uuid, "%02X%02X%02X%02X%02X%02X%02X%02X",
                        buf[0], buf[1], buf[2], buf[3],
                        buf[4], buf[5], buf[6], buf[7]);
                break;