floppym     15/01/15 05:15:22

  Added:                1.4.4-warnings.patch
  Log:
  Fix compiler warnings.
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
0BBEEA1FEA4843A4)

Revision  Changes    Path
1.1                  
net-print/epson-inkjet-printer-escpr/files/1.4.4-warnings.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/epson-inkjet-printer-escpr/files/1.4.4-warnings.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/epson-inkjet-printer-escpr/files/1.4.4-warnings.patch?rev=1.1&content-type=text/plain

Index: 1.4.4-warnings.patch
===================================================================
--- a/lib/epson-escpage-mono.c
+++ b/lib/epson-escpage-mono.c
@@ -885,7 +885,7 @@
 
        EPS_LOG_FUNCIN;
 
-       memset(pBand, 0, sizeof(pBand));
+       memset(pBand, 0, sizeof(EPS_PAGE_BAND_M));
 
     pBand->WidthInPixels = widthInPixels;
     pBand->WidthInBytes = (pBand->WidthInPixels+7)/8;
--- a/lib/epson-escpr-api.h
+++ b/lib/epson-escpr-api.h
@@ -98,6 +98,9 @@
     /*** 
-------------------------------------------------------------------------------*/
 extern EPS_ERR_CODE epsMakeMainteCmd     (EPS_INT32, EPS_UINT8*, EPS_UINT32*   
         );
 
+extern EPS_ERR_CODE SetupJobAttrib          (const EPS_JOB_ATTRIB*             
         );
+extern EPS_ERR_CODE SendStartJob            (EPS_BOOL                          
         );
+extern EPS_ERR_CODE PrintBand               (const EPS_UINT8*, EPS_UINT32, 
EPS_UINT32*  );
 #ifdef __cplusplus
 }
 #endif
--- a/src/filter.c
+++ b/src/filter.c
@@ -38,6 +38,7 @@
 #include "epson-escpr-api.h"
 #include "epson-escpr-services.h"
 #include "epson-escpr-mem.h"
+#include "epson-escpage.h"
 
 #include "err.h"
 #include "mem.h"
--- a/src/mem.c
+++ b/src/mem.c
@@ -23,6 +23,7 @@
 #endif
 
 #include <stdlib.h>
+#include "err.h"
 #include "mem.h"
 
 void *




Reply via email to