summaryrefslogtreecommitdiff
path: root/dpkg-split
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-05-28 00:55:29 +0200
committerGuillem Jover <guillem@debian.org>2014-05-28 00:55:29 +0200
commit72ba255678a0f4b940a7cc9d3f71d716077e9758 (patch)
tree149600b7ddac6625c2c02da0643953f2e46be5bb /dpkg-split
parenta89ceee852b90de13977026701e818feaf06afc5 (diff)
downloaddpkg-72ba255678a0f4b940a7cc9d3f71d716077e9758.tar.gz
dpkg-split: Uppercase and reword discard_which enum values
Use the more meaningful DISCARD_PART_ prefix instead of the cryptic and now confusing DS_ one (previously coming from the discardsome() function).
Diffstat (limited to 'dpkg-split')
-rw-r--r--dpkg-split/queue.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c
index b0ee69726..33323999e 100644
--- a/dpkg-split/queue.c
+++ b/dpkg-split/queue.c
@@ -3,7 +3,7 @@
* queue.c - queue management
*
* Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk>
- * Copyright © 2008-2012 Guillem Jover <guillem@debian.org>
+ * Copyright © 2008-2014 Guillem Jover <guillem@debian.org>
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -301,9 +301,9 @@ do_queue(const char *const *argv)
}
enum discard_which {
- ds_junk,
- ds_package,
- ds_all,
+ DISCARD_PART_JUNK,
+ DISCARD_PART_PACKAGE,
+ DISCARD_PART_ALL,
};
static void
@@ -314,13 +314,13 @@ discard_parts(struct partqueue *queue, enum discard_which which,
for (pq= queue; pq; pq= pq->nextinqueue) {
switch (which) {
- case ds_junk:
+ case DISCARD_PART_JUNK:
if (pq->info.md5sum) continue;
break;
- case ds_package:
+ case DISCARD_PART_PACKAGE:
if (!pq->info.md5sum || strcasecmp(pq->info.package,package)) continue;
break;
- case ds_all:
+ case DISCARD_PART_ALL:
break;
default:
internerr("unknown discard_which '%d'", which);
@@ -343,11 +343,11 @@ do_discard(const char *const *argv)
for (pq= queue; pq; pq= pq->nextinqueue)
if (pq->info.md5sum)
mustgetpartinfo(pq->info.filename,&pq->info);
- discard_parts(queue, ds_junk, NULL);
+ discard_parts(queue, DISCARD_PART_JUNK, NULL);
while ((thisarg = *argv++))
- discard_parts(queue, ds_package, thisarg);
+ discard_parts(queue, DISCARD_PART_PACKAGE, thisarg);
} else {
- discard_parts(queue, ds_all, NULL);
+ discard_parts(queue, DISCARD_PART_ALL, NULL);
}
return 0;