Author: peterw
Date: Fri Nov 9 20:07:56 2007
New Revision: 30299
URL:
http://svn.reactos.org/svn/reactos?rev=30299&view=rev
Log:
- FILE to fp ;).
Modified:
trunk/tools/RosBE/RosBE-Windows/Tools/chknewer.c
trunk/tools/RosBE/RosBE-Windows/Tools/tee.c
Modified: trunk/tools/RosBE/RosBE-Windows/Tools/chknewer.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/ch…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/chknewer.c (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/chknewer.c Fri Nov 9 20:07:56 2007
@@ -20,7 +20,7 @@
int main(int argc, char* argv[])
{
- FILE *FILE1, *FILE2;
+ FILE *fp1, *fp2;
time_t file1time = 0, file2time = 0;
if (argc > 3)
@@ -40,15 +40,15 @@
return 0;
}
- FILE1 = fopen(argv[1], "r");
- if (!FILE1)
+ fp1 = fopen(argv[1], "r");
+ if (!fp1)
{
fprintf(stderr, "%s: Error file \"%s\" doesn't seem to
exist.\n", argv[0], argv[1]);
return -1;
}
else
{
- if (fclose(FILE1))
+ if (fclose(fp1))
{
fprintf(stderr, "%s: Error closing file \"%s\"\n",
argv[0], argv[1]);
return -1;
@@ -61,15 +61,15 @@
}
}
- FILE2 = fopen(argv[2], "r");
- if (!FILE2)
+ fp2 = fopen(argv[2], "r");
+ if (!fp2)
{
fprintf(stderr, "%s: Error file \"%s\" doesn't seem to
exist.\n", argv[0], argv[2]);
return -1;
}
else
{
- if (fclose(FILE2))
+ if (fclose(fp2))
{
fprintf(stderr, "%s: Error closing file \"%s\"\n",
argv[0], argv[2]);
return -1;
Modified: trunk/tools/RosBE/RosBE-Windows/Tools/tee.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/te…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/tee.c (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/tee.c Fri Nov 9 20:07:56 2007
@@ -13,7 +13,7 @@
int main(int argc, char* argv[])
{
unsigned char charbuff;
- FILE *FILE;
+ FILE *fp;
if (argc > 2)
{
@@ -31,8 +31,8 @@
return 0;
}
- FILE = fopen(argv[1], "w");
- if (!FILE)
+ fp = fopen(argv[1], "w");
+ if (!fp)
{
fprintf(stderr, "%s: Error cannot create/open file
\"%s\".\n", argv[0], argv[1]);
return -1;
@@ -43,10 +43,10 @@
if (!feof(stdin))
{
fputc(charbuff, stdout);
- fputc(charbuff, FILE);
+ fputc(charbuff, fp);
}
}
- if (fclose(FILE))
+ if (fclose(fp))
{
fprintf(stderr, "%s: Error closing file \"%s\"\n", argv[0],
argv[1]);
return -1;