Fix the genesys backend on 64 bit machines by:

Specify missing return type of function, pointers cannot be casted to int.

Submitted by:	hselasky@
This commit is contained in:
Koop Mast 2011-06-07 12:11:36 +00:00
parent 1f70c2f18d
commit 306fea85f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275187
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= sane-backends
PORTVERSION= 1.0.21
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://alioth.debian.org/frs/download.php/3258/ \
ftp://ftp.sane-project.org/pub/sane/%SUBDIR%/ \

View File

@ -0,0 +1,11 @@
--- backend/genesys.c.orig 2011-06-07 13:06:00.000000000 +0200
+++ backend/genesys.c 2011-06-07 13:06:46.000000000 +0200
@@ -5436,7 +5436,7 @@
* @param size maximum size of the range
* @return a poiter to a valid range or NULL
*/
-static create_range(SANE_Fixed size)
+static SANE_Range *create_range(SANE_Fixed size)
{
SANE_Range *range=NULL;