[xml/sgml-commit] [linuxdoc-tools] 05/12: rtf-fix/rtf2rtf.l: Replace #include <malloc.h> with standard #include <stdlib.h>.

Agustín Martín Domingo agmartin at moszumanska.debian.org
Thu Oct 8 17:28:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

agmartin pushed a commit to branch upstream
in repository linuxdoc-tools.

commit d1690edd4bea19e3b40cf2c6e3bc22d74ad8b343
Author: Agustin Martin Domingo <agmartin at debian.org>
Date:   Thu Oct 8 16:32:44 2015 +0200

    rtf-fix/rtf2rtf.l: Replace #include <malloc.h> with standard #include <stdlib.h>.
    
    malloc.h is a non-standard library reference.
    ANSI/ISO C 1989-1990 specifies that malloc() and free() are in in stdlib.h.
    
    Signed-off-by: Agustin Martin Domingo <agmartin at debian.org>
---
 ChangeLog         | 2 ++
 rtf-fix/rtf2rtf.l | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 99ab7f0..c0cb378 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,8 @@ please see "doc/CHANGES.Debian-native".
 
 0.0.70:
 ======
+ * Replace #include <malloc.h> with standard #include <stdlib.h> in
+   rtf2rtf.l.
  * Build documentation in build target, not in install target
    (Debian #800537).
  * More versatile handling of doc formats. Add pdf format and built it
diff --git a/rtf-fix/rtf2rtf.l b/rtf-fix/rtf2rtf.l
index 7ef9c4a..d1f6a66 100644
--- a/rtf-fix/rtf2rtf.l
+++ b/rtf-fix/rtf2rtf.l
@@ -22,7 +22,7 @@
 
 %{
 
-#include <malloc.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-xml-sgml/linuxdoc-tools.git



More information about the debian-xml-sgml-commit mailing list