The following commit has been merged in the master branch:
commit 1fc9a0364a1954389036d18385b9b4432374fc49
Author: Guillem Jover <guil...@debian.org>
Date:   Tue Jun 29 07:12:39 2010 +0200

    dpkg-split: Fix indentation for the rest of split.c

diff --git a/dpkg-split/split.c b/dpkg-split/split.c
index d5d75f6..762fd5c 100644
--- a/dpkg-split/split.c
+++ b/dpkg-split/split.c
@@ -239,31 +239,33 @@ mksplit(const char *file_src, const char *prefix, size_t 
partsize,
        return 0;
 }
 
-void do_split(const char *const *argv) {
-  const char *sourcefile, *prefix;
-  char *palloc;
-  int l;
-  size_t partsize;
-
-  sourcefile= *argv++;
-  if (!sourcefile)
-    badusage(_("--split needs a source filename argument"));
-  prefix= *argv++;
-  if (prefix && *argv)
-    badusage(_("--split takes at most a source filename and destination 
prefix"));
-  if (!prefix) {
-    l= strlen(sourcefile);
-    palloc= nfmalloc(l+1);
-    strcpy(palloc,sourcefile);
-    if (!strcmp(palloc+l-(sizeof(DEBEXT)-1),DEBEXT)) {
-      l -= (sizeof(DEBEXT)-1);
-      palloc[l] = '\0';
-    }
-    prefix= palloc;
-  }
-  partsize = maxpartsize - HEADERALLOWANCE;
-
-  mksplit(sourcefile, prefix, partsize, maxpartsize, msdos);
-
-  exit(0);
+void
+do_split(const char *const *argv)
+{
+       const char *sourcefile, *prefix;
+       char *palloc;
+       int l;
+       size_t partsize;
+
+       sourcefile = *argv++;
+       if (!sourcefile)
+               badusage(_("--split needs a source filename argument"));
+       prefix = *argv++;
+       if (prefix && *argv)
+               badusage(_("--split takes at most a source filename and 
destination prefix"));
+       if (!prefix) {
+               l = strlen(sourcefile);
+               palloc = nfmalloc(l + 1);
+               strcpy(palloc, sourcefile);
+               if (!strcmp(palloc + l - (sizeof(DEBEXT) - 1), DEBEXT)) {
+                       l -= (sizeof(DEBEXT) - 1);
+                       palloc[l] = '\0';
+               }
+               prefix = palloc;
+       }
+       partsize = maxpartsize - HEADERALLOWANCE;
+
+       mksplit(sourcefile, prefix, partsize, maxpartsize, msdos);
+
+       exit(0);
 }

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to