The following commit has been merged in the master branch:
commit 662f5bf7024ffa6a54b7b1cd125104bc657daae5
Author: Guillem Jover <[email protected]>
Date: Wed Nov 11 05:18:09 2009 +0100
dpkg: Remove unused variable in ensure_diversions()
diff --git a/src/divertdb.c b/src/divertdb.c
index f664354..739e458 100644
--- a/src/divertdb.c
+++ b/src/divertdb.c
@@ -52,7 +52,6 @@ ensure_diversions(void)
char linebuf[MAXDIVERTFILENAME];
FILE *file;
struct diversion *ov, *oicontest, *oialtname;
- int l;
varbufreset(&vb);
varbufaddstr(&vb, admindir);
@@ -96,7 +95,7 @@ ensure_diversions(void)
return;
}
- while ((l = fgets_checked(linebuf, sizeof(linebuf), file, vb.buf)) >=
0) {
+ while (fgets_checked(linebuf, sizeof(linebuf), file, vb.buf) >= 0) {
oicontest = nfmalloc(sizeof(struct diversion));
oialtname = nfmalloc(sizeof(struct diversion));
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]