summaryrefslogtreecommitdiff
path: root/backend/pieusb_specific.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:46 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:46 +0100
commitecaaf250cb33ff61f37a7b441f2337584a655350 (patch)
tree4303648095deff998ae20c2393b56db527742ac9 /backend/pieusb_specific.c
parent5793a221e112fa49073de0137d6bfa750a61b0a1 (diff)
parent351b7328520c16730ceb46e5acae16038c42185e (diff)
Update upstream source from tag 'upstream/1.0.32'
Update to upstream version '1.0.32' with Debian dir 2c1111c59d9d68bcbf479a4a4de7697fe2de127f
Diffstat (limited to 'backend/pieusb_specific.c')
-rw-r--r--backend/pieusb_specific.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/backend/pieusb_specific.c b/backend/pieusb_specific.c
index 1b5f0f4..033ad03 100644
--- a/backend/pieusb_specific.c
+++ b/backend/pieusb_specific.c
@@ -17,9 +17,7 @@
General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- MA 02111-1307, USA.
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
As a special exception, the authors of SANE give permission for
additional uses of the libraries contained in this release of SANE.
@@ -82,7 +80,7 @@ static void pieusb_calculate_shading(struct Pieusb_Scanner *scanner, SANE_Byte*
/* sub to sanei_pieusb_post() */
static SANE_Status pieusb_write_pnm_file (char *filename, uint16_t *data, int depth, int channels, int pixels_per_line, int lines);
-/* Auxilary */
+/* Auxiliary */
static size_t max_string_size (SANE_String_Const const strings[]);
static double getGain(int gain);
static int getGainSetting(double gain);
@@ -1171,7 +1169,7 @@ sanei_pieusb_on_cancel (Pieusb_Scanner * scanner)
}
/**
- * Determine maximum lengt of a set of strings.
+ * Determine maximum length of a set of strings.
*
* @param strings Set of strings
* @return maximum length
@@ -1672,7 +1670,7 @@ static void pieusb_calculate_shading(struct Pieusb_Scanner *scanner, SANE_Byte*
SANE_Int shading_width = scanner->device->shading_parameters[0].pixelsPerLine;
SANE_Int shading_height = scanner->device->shading_parameters[0].nLines;
- /* Initialze all to 0 */
+ /* Initialize all to 0 */
for (k = 0; k < SHADING_PARAMETERS_INFO_COUNT; k++) {
scanner->shading_max[k] = 0;
scanner->shading_mean[k] = 0;
@@ -1862,7 +1860,7 @@ sanei_pieusb_set_mode_from_options(Pieusb_Scanner * scanner)
* - values default (pieusb_set_default_gain_offset)
* - values set by options
* - values set by auto-calibration procedure
- * - values determined from preceeding preview
+ * - values determined from preceding preview
*
* @param scanner
* @return
@@ -1897,7 +1895,7 @@ sanei_pieusb_set_gain_offset(Pieusb_Scanner * scanner, const char *calibration_m
status.pieusb_status = PIEUSB_STATUS_GOOD;
} else if ((strcmp(calibration_mode, SCAN_CALIBRATION_PREVIEW) == 0)
&& scanner->preview_done) {
- /* If no preview data availble, do the auto-calibration. */
+ /* If no preview data available, do the auto-calibration. */
double dg, dgi;
DBG (DBG_info, "sanei_pieusb_set_gain_offset(): get calibration data from preview. scanner->mode.passes %d\n", scanner->mode.passes);
switch (scanner->mode.passes) {