summaryrefslogtreecommitdiff
path: root/backend/sharp.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
commit351b7328520c16730ceb46e5acae16038c42185e (patch)
treefae21fd5c94f3c3ed0202a95c9ada705482e647b /backend/sharp.c
parentad38bc6ecb80ddeb562841b33258dd53659b1da6 (diff)
New upstream version 1.0.32upstream/1.0.32
Diffstat (limited to 'backend/sharp.c')
-rw-r--r--backend/sharp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/backend/sharp.c b/backend/sharp.c
index 701b179..d533103 100644
--- a/backend/sharp.c
+++ b/backend/sharp.c
@@ -18,9 +18,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.
@@ -1678,7 +1676,7 @@ set_gamma_caps(SHARP_Scanner *s)
/* The next function is a slightly modified version of sanei_constrain_value
Instead of returning status information like STATUS_INVAL, it adjusts
- an invaild value to the nearest allowed one.
+ an invalid value to the nearest allowed one.
*/
static void
clip_value (const SANE_Option_Descriptor * opt, void * value)
@@ -2096,7 +2094,7 @@ init_options (SHARP_Scanner * s)
#ifdef USE_COLOR_THRESHOLD
s->opt[OPT_THRESHOLD_R].name = SANE_NAME_THRESHOLD "-red";
- /* xxx the titles and decriptions are confusing:
+ /* xxx the titles and descriptions are confusing:
"set white point (red)"
Any idea? maybe "threshold to get the red component on"
*/
@@ -3145,7 +3143,7 @@ sprint_gamma(Option_Value val, SANE_Byte *dst)
SANE_Byte *p = dst;
p += sprintf((char *) p, "%i", val.wa[0] > 255 ? 255 : val.wa[0]);
- /* val.wa[i] is over 255, so val.wa[i] is limitied to 255 */
+ /* val.wa[i] is over 255, so val.wa[i] is limited to 255 */
for (i = 1; i < 256; i++)
p += sprintf((char *) p, ",%i", val.wa[i] > 255 ? 255 : val.wa[i]);
return p - dst;