Skip to content
Snippets Groups Projects
Commit 2678bf57 authored by Rene Brun's avatar Rene Brun
Browse files

Fix :warning: declaration of 'stat' shadows a global declaration:wq

git-svn-id: http://root.cern.ch/svn/root/trunk@23434 27541ba8-7e3a-0410-8455-c3a389f83636
parent cac53afc
No related branches found
No related tags found
No related merge requests found
...@@ -105,14 +105,14 @@ void vxinvc_ (int *iv, int *ixv, int *n) ...@@ -105,14 +105,14 @@ void vxinvc_ (int *iv, int *ixv, int *n)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void cfget_(int *lundes, int *medium, int *nwrec, int *nwtak, char *mbuf, void cfget_(int *lundes, int *medium, int *nwrec, int *nwtak, char *mbuf,
int *stat) int *astat)
{ {
int fildes; int fildes;
int nbdn, nbdo; int nbdn, nbdo;
if (medium) { } if (medium) { }
*stat = 0; *astat = 0;
if (*nwtak <= 0) return; if (*nwtak <= 0) return;
fildes = *lundes; fildes = *lundes;
...@@ -123,17 +123,17 @@ void cfget_(int *lundes, int *medium, int *nwrec, int *nwtak, char *mbuf, ...@@ -123,17 +123,17 @@ void cfget_(int *lundes, int *medium, int *nwrec, int *nwtak, char *mbuf,
*nwtak = (nbdn - 1) / 4 + 1; *nwtak = (nbdn - 1) / 4 + 1;
return; return;
heof: heof:
*stat = -1; *astat = -1;
return; return;
herror: herror:
*stat = 0; *astat = 0;
printf ("error in CFGET\n"); printf ("error in CFGET\n");
return; return;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void cfseek_(int *lundes, int *medium, int *nwrec, int *jcrec, int *stat) void cfseek_(int *lundes, int *medium, int *nwrec, int *jcrec, int *astat)
{ {
int fildes; int fildes;
int nbdo; int nbdo;
...@@ -145,11 +145,11 @@ void cfseek_(int *lundes, int *medium, int *nwrec, int *jcrec, int *stat) ...@@ -145,11 +145,11 @@ void cfseek_(int *lundes, int *medium, int *nwrec, int *jcrec, int *stat)
nbdo = *jcrec * *nwrec * 4; nbdo = *jcrec * *nwrec * 4;
isw = lseek (fildes, nbdo, 0); isw = lseek (fildes, nbdo, 0);
if (isw < 0) goto trouble; if (isw < 0) goto trouble;
*stat = 0; *astat = 0;
return; return;
trouble: trouble:
*stat = -1; *astat = -1;
printf("error in CFSEEK\n"); printf("error in CFSEEK\n");
} }
...@@ -214,10 +214,10 @@ int cfstati_(char *fname, int *info, int *lgname) ...@@ -214,10 +214,10 @@ int cfstati_(char *fname, int *info, int *lgname)
int cfopen_perm = 0; int cfopen_perm = 0;
#ifdef WIN32 #ifdef WIN32
void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf, void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf,
char *ftext, int lftext, int *stat, int *lgtx) char *ftext, int lftext, int *astat, int *lgtx)
#else #else
void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf, void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf,
char *ftext, int *stat, int *lgtx) char *ftext, int *astat, int *lgtx)
#endif #endif
{ {
char *pttext, *fchtak(); char *pttext, *fchtak();
...@@ -226,7 +226,7 @@ void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf, ...@@ -226,7 +226,7 @@ void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf,
int perm; int perm;
if (nwrec || nbuf) { } if (nwrec || nbuf) { }
*lundes = 0; *lundes = 0;
*stat = -1; *astat = -1;
perm = cfopen_perm; perm = cfopen_perm;
cfopen_perm = 0; cfopen_perm = 0;
if (*medium == 1) goto fltp; if (*medium == 1) goto fltp;
...@@ -266,10 +266,10 @@ act: ...@@ -266,10 +266,10 @@ act:
fildes = open (pttext, flags, perm); fildes = open (pttext, flags, perm);
if (fildes < 0) goto errm; if (fildes < 0) goto errm;
*lundes = fildes; *lundes = fildes;
*stat = 0; *astat = 0;
goto done; goto done;
errm: errm:
*stat = 0; *astat = 0;
printf("error in CFOPEN\n"); printf("error in CFOPEN\n");
done: done:
free(pttext); free(pttext);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment