summaryrefslogtreecommitdiff
path: root/dpkg-split
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-11-22 21:09:20 +0100
committerGuillem Jover <guillem@debian.org>2013-12-07 07:43:21 +0100
commite6962f426e1d246e8c54a1780eb2d7a570382136 (patch)
tree3c679153fb03b7966c86b1a315cbe2a177a7246b /dpkg-split
parent9eca0910aa91eac8989b9fa78cdc9ed06fb2e998 (diff)
downloaddpkg-e6962f426e1d246e8c54a1780eb2d7a570382136.tar.gz
dpkg-split: Rename discard symbols
Use underscores to split symbol names, and rename discardsome() to discard_parts().
Diffstat (limited to 'dpkg-split')
-rw-r--r--dpkg-split/queue.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c
index 8c7f05407..4b26e3a89 100644
--- a/dpkg-split/queue.c
+++ b/dpkg-split/queue.c
@@ -294,9 +294,15 @@ do_queue(const char *const *argv)
return 0;
}
-enum discardwhich { ds_junk, ds_package, ds_all };
+enum discard_which {
+ ds_junk,
+ ds_package,
+ ds_all,
+};
-static void discardsome(enum discardwhich which, const char *package) {
+static void
+discard_parts(enum discard_which which, const char *package)
+{
struct partqueue *pq;
for (pq= queue; pq; pq= pq->nextinqueue) {
@@ -310,7 +316,7 @@ static void discardsome(enum discardwhich which, const char *package) {
case ds_all:
break;
default:
- internerr("unknown discardwhich '%d'", which);
+ internerr("unknown discard_which '%d'", which);
}
if (unlink(pq->info.filename))
ohshite(_("unable to discard `%.250s'"),pq->info.filename);
@@ -329,10 +335,11 @@ do_discard(const char *const *argv)
for (pq= queue; pq; pq= pq->nextinqueue)
if (pq->info.md5sum)
mustgetpartinfo(pq->info.filename,&pq->info);
- discardsome(ds_junk,NULL);
- while ((thisarg= *argv++)) discardsome(ds_package,thisarg);
+ discard_parts(ds_junk, null);
+ while ((thisarg = *argv++))
+ discard_parts(ds_package, thisarg);
} else {
- discardsome(ds_all,NULL);
+ discard_parts(ds_all, NULL);
}
return 0;