Code sync
[external/hplip.git] / packaging / 14_charsign_fixes.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 14_charsign_fixes.dpatch by  <till.kamppeter@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: some missing charsign
6
7 @DPATCH@
8 diff -urNad hplip-1.7.3~/scan/sane/scl.c hplip-1.7.3/scan/sane/scl.c
9 --- hplip-1.7.3~/scan/sane/scl.c        2007-03-19 16:26:48.000000000 +0000
10 +++ hplip-1.7.3/scan/sane/scl.c 2007-03-26 22:48:39.000000000 +0100
11 @@ -36,10 +36,11 @@
12  #define DEBUG_DECLARE_ONLY
13  #include "sanei_debug.h"
14  
15 -static int SclBufferIsPartialReply( unsigned char * data, int datalen )
16 +static int SclBufferIsPartialReply( void * dataptr, int datalen )
17  {
18      int i = 0, value = 0;
19 -    unsigned char d;  
20 +    unsigned char * const data = dataptr;
21 +    unsigned int d;
22  
23      if( i >= datalen )
24      {