summaryrefslogtreecommitdiff
path: root/ext/repo_deb.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2009-06-30 16:39:54 +0200
committerMichael Schroeder <mls@suse.de>2009-06-30 16:39:54 +0200
commit7f40732b1720670e574e5b5fad03af9a289061d2 (patch)
tree3e2c76529bf052938065f04659197517b6b43a2b /ext/repo_deb.c
parent32f13507bf798ed9fec86a3616ff09936811a77a (diff)
downloadlibsolv-7f40732b1720670e574e5b5fad03af9a289061d2.tar.gz
libsolv-7f40732b1720670e574e5b5fad03af9a289061d2.tar.bz2
libsolv-7f40732b1720670e574e5b5fad03af9a289061d2.zip
- add repo_deb to CMakeLists.txt
Diffstat (limited to 'ext/repo_deb.c')
-rw-r--r--ext/repo_deb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/repo_deb.c b/ext/repo_deb.c
index 59807ac..da352ba 100644
--- a/ext/repo_deb.c
+++ b/ext/repo_deb.c
@@ -69,7 +69,6 @@ makedeps(Repo *repo, char *deps, unsigned int olddeps, Id marker)
Pool *pool = repo->pool;
char *p, *n, *ne, *e, *ee;
Id id, name, evr;
- int c;
int flags;
while ((p = strchr(deps, ',')) != 0)
@@ -296,13 +295,13 @@ repo_add_debs(Repo *repo, const char **debs, int ndebs, int flags)
continue;
}
l = fread(buf, 1, sizeof(buf), fp);
- if (l < 8 + 60 || strncmp(buf, "!<arch>\ndebian-binary ", 8 + 16) != 0)
+ if (l < 8 + 60 || strncmp((char *)buf, "!<arch>\ndebian-binary ", 8 + 16) != 0)
{
fprintf(stderr, "%s: not a deb package\n", debs[i]);
fclose(fp);
continue;
}
- vlen = atoi(buf + 8 + 48);
+ vlen = atoi((char *)buf + 8 + 48);
if (vlen < 0 || vlen > l)
{
fprintf(stderr, "%s: not a deb package\n", debs[i]);
@@ -316,13 +315,13 @@ repo_add_debs(Repo *repo, const char **debs, int ndebs, int flags)
fclose(fp);
continue;
}
- if (strncmp(buf + 8 + 60 + vlen, "control.tar.gz ", 16) != 0)
+ if (strncmp((char *)buf + 8 + 60 + vlen, "control.tar.gz ", 16) != 0)
{
fprintf(stderr, "%s: control.tar.gz is not second entry\n", debs[i]);
fclose(fp);
continue;
}
- clen = atoi(buf + 8 + 60 + vlen + 48);
+ clen = atoi((char *)buf + 8 + 60 + vlen + 48);
if (clen <= 0)
{
fprintf(stderr, "%s: control.tar.gz has illegal size\n", debs[i]);
@@ -411,7 +410,7 @@ repo_add_debs(Repo *repo, const char **debs, int ndebs, int flags)
for (j = 124; j < 124 + 12; j++)
if (bp[j] >= '0' && bp[j] <= '7')
l2 = l2 * 8 + (bp[j] - '0');
- if (!strcmp(bp, "./control"))
+ if (!strcmp((char *)bp, "./control"))
break;
l2 = 512 + ((l2 + 511) & ~511);
l -= l2;