SOURCES: dvi2tty-ansi-c.patch (NEW) - dvi2tty-ansi-c.patch: fixed ...

qrczak qrczak at pld-linux.org
Tue Feb 27 23:56:14 CET 2007


Author: qrczak                       Date: Tue Feb 27 22:56:14 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- dvi2tty-ansi-c.patch: fixed trivial ANSI C violations.
- Release 2.

---- Files affected:
SOURCES:
   dvi2tty-ansi-c.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/dvi2tty-ansi-c.patch
diff -u /dev/null SOURCES/dvi2tty-ansi-c.patch:1.1
--- /dev/null	Tue Feb 27 23:56:14 2007
+++ SOURCES/dvi2tty-ansi-c.patch	Tue Feb 27 23:56:09 2007
@@ -0,0 +1,32 @@
+--- dvi2tty-5.3.1/disdvi.c~	2003-01-23 11:31:00.000000000 +0100
++++ dvi2tty-5.3.1/disdvi.c	2007-02-27 23:53:01.000000000 +0100
+@@ -107,15 +107,7 @@
+  * Function declarations
+  */
+ 
+-#if !defined(THINK_C)
+-char *          malloc          ();
+-#endif
+-
+-#if defined(VMS)
+-                main            (int argc, char ** argv);
+-#else
+-void            main            (int argc, char ** argv);
+-#endif
++int             main            (int argc, char ** argv);
+ void            bop             (void);
+ void            preamble        (void);
+ void            postamble       (void);
+@@ -135,11 +127,7 @@
+  * MAIN --
+  */
+ 
+-#if defined(VMS)
+-     main(int argc, char **argv)
+-#else
+-void main(int argc, char **argv)
+-#endif
++int main(int argc, char **argv)
+ {
+     register int opcode;                /* dvi opcode                        */
+     register int i;
================================================================


More information about the pld-cvs-commit mailing list