[Pcsclite-cvs-commit] r3274 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Jan 9 16:50:53 UTC 2009
Author: rousseau
Date: Fri Jan 9 16:50:53 2009
New Revision: 3274
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3274
Log:
rename variable fd in profile_fd to avoid
winscard_clnt.c:1717: attention : declaration of ‘fd’ shadows a global declaration
Modified:
trunk/PCSC/src/winscard_clnt.c
Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=3274&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Fri Jan 9 16:50:53 2009
@@ -74,7 +74,7 @@
#include <sys/time.h>
struct timeval profile_time_start;
-FILE *fd;
+FILE *profile_fd;
char profile_tty;
char fct_name[100];
@@ -91,14 +91,14 @@
initialized = TRUE;
sprintf(filename, "%s-%d", PROFILE_FILE, getuid());
- fd = fopen(filename, "a+");
- if (NULL == fd)
+ profile_fd = fopen(filename, "a+");
+ if (NULL == profile_fd)
{
fprintf(stderr, "\33[01;31mCan't open %s: %s\33[0m\n",
PROFILE_FILE, strerror(errno));
exit(-1);
}
- fprintf(fd, "\nStart a new profile\n");
+ fprintf(profile_fd, "\nStart a new profile\n");
if (isatty(fileno(stderr)))
profile_tty = TRUE;
@@ -146,8 +146,8 @@
else
fprintf(stderr, "\33[01;31mRESULT %s \33[35m%ld\33[0m\n", f, d);
}
- fprintf(fd, "%s %ld\n", f, d);
- fflush(fd);
+ fprintf(profile_fd, "%s %ld\n", f, d);
+ fflush(profile_fd);
} /* profile_end */
#else
More information about the Pcsclite-cvs-commit
mailing list