kopia lustrzana https://gitlab.com/sane-project/backends
Set freed variables to 0 in sane_exit. Fixed coding style. New version:
1.0-121. Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
9e573ebc59
commit
28fa07be27
|
@ -1,7 +1,7 @@
|
|||
/* sane - Scanner Access Now Easy.
|
||||
Copyright (C) 1996, 1997 David Mosberger-Tang, 1998 Andreas Bolsch for
|
||||
extension to ScanExpress models version 0.5,
|
||||
2000, 2001 Henning Meier-Geinitz.
|
||||
2000 - 2002 Henning Meier-Geinitz.
|
||||
This file is part of the SANE package.
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
|
@ -153,7 +153,7 @@ do { \
|
|||
|
||||
/* declarations */
|
||||
enum Mustek_Option
|
||||
{
|
||||
{
|
||||
OPT_NUM_OPTS = 0,
|
||||
|
||||
OPT_MODE_GROUP,
|
||||
|
@ -194,18 +194,18 @@ enum Mustek_Option
|
|||
|
||||
/* must come last: */
|
||||
NUM_OPTIONS
|
||||
};
|
||||
};
|
||||
|
||||
typedef union
|
||||
{
|
||||
{
|
||||
SANE_Word w;
|
||||
SANE_Word *wa; /* word array */
|
||||
SANE_String s;
|
||||
}
|
||||
}
|
||||
Option_Value;
|
||||
|
||||
typedef struct Mustek_Device
|
||||
{
|
||||
{
|
||||
struct Mustek_Device *next;
|
||||
SANE_String name;
|
||||
SANE_Device sane;
|
||||
|
@ -220,7 +220,7 @@ typedef struct Mustek_Device
|
|||
SANE_Int gamma_length;
|
||||
/* values actually used by scanner, not necessarily the desired! */
|
||||
SANE_Int bpl, lines;
|
||||
/* what is needed for calibration (ScanExpress and Pro series)*/
|
||||
/* what is needed for calibration (ScanExpress and Pro series) */
|
||||
struct
|
||||
{
|
||||
SANE_Int bytes;
|
||||
|
@ -243,11 +243,11 @@ typedef struct Mustek_Device
|
|||
SANE_Int firmware_format;
|
||||
/* firmware revision system: 0 = old, x.yz; 1 = new, Vxyz */
|
||||
SANE_Int firmware_revision_system;
|
||||
}
|
||||
}
|
||||
Mustek_Device;
|
||||
|
||||
typedef struct Mustek_Scanner
|
||||
{
|
||||
{
|
||||
/* all the state needed to define a scan request: */
|
||||
struct Mustek_Scanner *next;
|
||||
|
||||
|
@ -295,11 +295,12 @@ typedef struct Mustek_Scanner
|
|||
/* these are used for SE, MFS and N line-distance correction: */
|
||||
SANE_Byte *buf[3];
|
||||
/* these are used for N line-distance correction only: */
|
||||
SANE_Int ld_line;/* line # currently processed in ld-correction */
|
||||
SANE_Int ld_line; /* line # currently processed in
|
||||
ld-correction */
|
||||
SANE_Int lmod3; /* line # modulo 3 */
|
||||
}
|
||||
ld;
|
||||
}
|
||||
}
|
||||
Mustek_Scanner;
|
||||
|
||||
#endif /* mustek_h */
|
||||
|
|
Ładowanie…
Reference in New Issue