X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lib%2Fzpm.c;h=0a6f1c7e25a9741d3f089c18f1b5084ddb459d6e;hb=84f276b21e57aa8fe1e16d01e75fee1097d5daf8;hp=72b5777f1266415f71b79723d791e30a6ad226b7;hpb=09dde8c2b752ea64d012778ad795b7e70cd9fada;p=zpackage diff --git a/lib/zpm.c b/lib/zpm.c index 72b5777..0a6f1c7 100644 --- a/lib/zpm.c +++ b/lib/zpm.c @@ -354,12 +354,12 @@ int zpm_close(struct zpm *pkg) { return 1; } -static int zpm_sqlite_vercmp(void *not_used, int unknown, const void *a, - int unk2, const void *b) { +static int zpm_sqlite_vercmp(void *not_used, int lena, const void *a, + int lenb, const void *b) { /* not sure what the ints are, possibly string lengths */ - not_used = 0; /* suppress warning */ - unknown = 0; /* suppress warning */ - unk2 = 0; + if (not_used != 0) fprintf(stderr, "sqlite vercmp not_used = %p\n", + not_used); + if (lena == 0 && lenb > 0) return 1; return zpm_vercmp(a, b); } @@ -734,7 +734,9 @@ int zpm_import(struct zpm *pkg, char *path, uint32_t flags, char *hash) { hash = hashbuf; } - flags = 0; /* suppress warning, probably use to follow symlinks */ + if (flags) { + fprintf(stderr, "zpm_import unused flags = %d\n", flags); + } /* mmap the file */ fd = open(path, O_RDONLY); if (fd == -1) {