]> code.citadel.org Git - citadel.git/commitdiff
* base64.c: mapped fi and fo to stdin and stdout using
authorArt Cancro <ajc@citadel.org>
Thu, 3 Jun 1999 15:37:02 +0000 (15:37 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 3 Jun 1999 15:37:02 +0000 (15:37 +0000)
          actual code rather than assignment at declaration time
          (several users of Red Hat Linux 6.0 reported problems)

citadel/ChangeLog
citadel/base64.c

index 4c7189d7e43274bcd30928fbf4e87c1ca4404e77..b4169858c33ed6b926b3965c16a5835d40ebcd84 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun  3 11:35:18 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+       * base64.c: mapped fi and fo to stdin and stdout using
+         actual code rather than assignment at declaration time
+         (several users of Red Hat Linux 6.0 reported problems)
+
 Fri May 21 20:05:00 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Added function CtdlGetDynamicSymbol() for dynamic symbol allocation
        * server.h: Changed discrete #define's to enum's where appropriate
index 5925f977ac3b61342db75bdbcfe4361279cd6d16..ff69e32188619c4fda76f31ab98a0e8a8de4d298 100644 (file)
@@ -7,9 +7,13 @@
 
                This program is in the public domain.
 
+Revision date: 11th August 1997
+
+Modified slightly for the Citadel/UX system, June 1999
+http://uncnsrd.mt-kisco.ny.us/citadel
+
 */
 
-#define REVDATE "11th August 1997"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -23,8 +27,8 @@
 
 typedef unsigned char byte;          /* Byte type */
 
-static FILE *fi = stdin;             /* Input file */
-static FILE *fo = stdout;            /* Output file */
+FILE *fi;                            /* Input file */
+FILE *fo;                            /* Output file */
 static byte iobuf[256];              /* I/O buffer */
 static int iolen = 0;                /* Bytes left in I/O buffer */
 static int iocp = 256;               /* Character removal pointer */
@@ -245,6 +249,9 @@ int main(int argc, char *argv[])
     int i, f = 0, decoding = FALSE;
     char *cp, opt;
 
+    fi = stdin;
+    fo = stdout;
+
     for (i = 1; i < argc; i++) {
        cp = argv[i];
         if (*cp == '-') {