summaryrefslogtreecommitdiff
path: root/meta.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-09 18:55:12 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-09 18:55:12 +0200
commitea5fc2d69353e5b675ebc1375160f5bed1ab52e9 (patch)
treec1a9e29f01d5f489df11f8253a47d588f1219728 /meta.c
parent312ba5b36ab4c45c663d0900b33c998b39ef3bf7 (diff)
Fix errorsHEADmaster
Diffstat (limited to 'meta.c')
-rw-r--r--meta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta.c b/meta.c
index ac4641c..96bb67c 100644
--- a/meta.c
+++ b/meta.c
@@ -97,7 +97,7 @@ btfreemeta(struct btmeta *mp)
freeannounce(mp->announce);
free(mp->name);
free(mp->fname);
- for (fp = SIMPLEQ_FIRST(&mp->flist); fp != SIMPLEQ_END(&mp->flist); fp = nxt) {
+ for (fp = SIMPLEQ_FIRST(&mp->flist); fp != NULL; fp = nxt) {
nxt = SIMPLEQ_NEXT(fp, link);
free(fp->path);
free(fp);
@@ -234,7 +234,7 @@ getannounce(char *src)
if ((ap = calloc(1, sizeof(struct btannounce))) == NULL)
return NULL;
- if ((host = strcasestr(buf, HTTP_URL)) == NULL) {
+ if ((host = strstr(buf, HTTP_URL)) == NULL) {
free(buf);
return NULL;
} else