Skip to content

Commit

Permalink
Fix builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jun 22, 2020
1 parent c91ce98 commit 544b08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdOss/XrdOssUnlink.cc
Expand Up @@ -108,7 +108,7 @@ int XrdOssSys::Unlink(const char *path, int Opts, XrdOucEnv *eP)
unsigned long long dummy, remotefs;
int i, retc2, doAdjust = 0, retc = XrdOssOK;
struct stat statbuff;
char *fnp;
//char *fnp;
char local_path[MAXPATHLEN+1+8];
char remote_path[MAXPATHLEN+1];

Expand Down Expand Up @@ -141,7 +141,7 @@ int XrdOssSys::Unlink(const char *path, int Opts, XrdOucEnv *eP)
//
if (!retc)
{if (unlink(local_path)) retc = -errno;
else {i = strlen(local_path); fnp = &local_path[i];
else {i = strlen(local_path); //fnp = &local_path[i];
if (doAdjust && statbuff.st_size)
XrdOssCache::Adjust(statbuff.st_dev, -statbuff.st_size);
}
Expand Down

0 comments on commit 544b08e

Please sign in to comment.