Navigation Menu

Skip to content

Commit

Permalink
Fixed unused variable compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 13, 2015
1 parent 8f85684 commit 98a0053
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libfetch/fetch.c
Expand Up @@ -85,9 +85,9 @@ FILE *
#endif
fetchXGet(struct url *URL, struct url_stat *us, const char *flags)
{
int direct;
//int direct;

direct = CHECK_FLAG('d');
//direct = CHECK_FLAG('d');
if (us != NULL) {
us->size = -1;
us->atime = us->mtime = 0;
Expand Down Expand Up @@ -137,9 +137,9 @@ fetchGet(struct url *URL, const char *flags)
FILE *
fetchPut(struct url *URL, const char *flags)
{
int direct;
//int direct;

direct = CHECK_FLAG('d');
//direct = CHECK_FLAG('d');
if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
return (fetchPutFile(URL, flags));
else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
Expand All @@ -159,9 +159,9 @@ fetchPut(struct url *URL, const char *flags)
int
fetchStat(struct url *URL, struct url_stat *us, const char *flags)
{
int direct;
//int direct;

direct = CHECK_FLAG('d');
//direct = CHECK_FLAG('d');
if (us != NULL) {
us->size = -1;
us->atime = us->mtime = 0;
Expand All @@ -185,9 +185,9 @@ fetchStat(struct url *URL, struct url_stat *us, const char *flags)
struct url_ent *
fetchList(struct url *URL, const char *flags)
{
int direct;
//int direct;

direct = CHECK_FLAG('d');
//direct = CHECK_FLAG('d');
if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
return (fetchListFile(URL, flags));
else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
Expand Down

0 comments on commit 98a0053

Please sign in to comment.