chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ditch --with-bits and detect Fink bitness automatically.
[disorder]
/
lib
/
configuration.c
diff --git
a/lib/configuration.c
b/lib/configuration.c
index 95b81330df1c546a93bcdc978c28a5deade62105..dc3d0092b6c8216081b4e794a848cf6f15362826 100644
(file)
--- a/
lib/configuration.c
+++ b/
lib/configuration.c
@@
-1466,7
+1466,7
@@
char *config_get_file(const char *name) {
static int stringlist_compare(const struct stringlist *a,
const struct stringlist *b) {
static int stringlist_compare(const struct stringlist *a,
const struct stringlist *b) {
- int n, c;
+ int n
= 0
, c;
while(n < a->n && n < b->n) {
if((c = strcmp(a->s[n], b->s[n])))
while(n < a->n && n < b->n) {
if((c = strcmp(a->s[n], b->s[n])))
@@
-1502,7
+1502,7
@@
static int namepart_compare(const struct namepart *a,
static int namepartlist_compare(const struct namepartlist *a,
const struct namepartlist *b) {
static int namepartlist_compare(const struct namepartlist *a,
const struct namepartlist *b) {
- int n, c;
+ int n
= 0
, c;
while(n < a->n && n < b->n) {
if((c = namepart_compare(&a->s[n], &b->s[n])))
while(n < a->n && n < b->n) {
if((c = namepart_compare(&a->s[n], &b->s[n])))