summaryrefslogtreecommitdiff
path: root/camlibs/jl2005c
diff options
context:
space:
mode:
authorSiim Meerits <sh0@yutani.ee>2020-07-27 17:37:00 +0300
committerSiim Meerits <sh0@yutani.ee>2020-07-27 17:37:00 +0300
commit456a1d598bccc260b233d2e91c469be452e0fbef (patch)
treec1288655494c94292f6e2eb26d722958899c7107 /camlibs/jl2005c
parentaf2c0e0558e78cae06371abef36f43ca74a9c5c0 (diff)
downloadlibgphoto2-456a1d598bccc260b233d2e91c469be452e0fbef.tar.gz
Remove trailing whitespace from all *.h and *.c files.
Diffstat (limited to 'camlibs/jl2005c')
-rw-r--r--camlibs/jl2005c/img_enhance.c6
-rw-r--r--camlibs/jl2005c/jl2005bcd_decompress.c2
-rw-r--r--camlibs/jl2005c/jpeg_memsrcdest.c2
-rw-r--r--camlibs/jl2005c/library.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/camlibs/jl2005c/img_enhance.c b/camlibs/jl2005c/img_enhance.c
index 25e631f3f..956879078 100644
--- a/camlibs/jl2005c/img_enhance.c
+++ b/camlibs/jl2005c/img_enhance.c
@@ -159,17 +159,17 @@ white_balance (unsigned char *data, unsigned int size, float saturation)
{
d = (data[x + 0] << 8) * r_factor + 8;
d >>= 8;
- if (d > 0xff)
+ if (d > 0xff)
d = 0xff;
data[x + 0] = d;
d = (data[x + 1] << 8) * g_factor + 8;
d >>= 8;
- if (d > 0xff)
+ if (d > 0xff)
d = 0xff;
data[x + 1] = d;
d = (data[x + 2] << 8) * b_factor + 8;
d >>= 8;
- if (d > 0xff)
+ if (d > 0xff)
d = 0xff;
data[x + 2] = d;
}
diff --git a/camlibs/jl2005c/jl2005bcd_decompress.c b/camlibs/jl2005c/jl2005bcd_decompress.c
index b545f04a4..005bf8e52 100644
--- a/camlibs/jl2005c/jl2005bcd_decompress.c
+++ b/camlibs/jl2005c/jl2005bcd_decompress.c
@@ -19,7 +19,7 @@
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the
+ * along with this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
diff --git a/camlibs/jl2005c/jpeg_memsrcdest.c b/camlibs/jl2005c/jpeg_memsrcdest.c
index b65310e9b..d3dd788ed 100644
--- a/camlibs/jl2005c/jpeg_memsrcdest.c
+++ b/camlibs/jl2005c/jpeg_memsrcdest.c
@@ -273,7 +273,7 @@ jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer,
{
my_dest_ptr dest;
- /* The destination object is made permanent so that multiple JPEG
+ /* The destination object is made permanent so that multiple JPEG
* images can be written to the same file without re-executing
* jpeg_stdio_dest.
* This makes it dangerous to use this manager and a different
diff --git a/camlibs/jl2005c/library.c b/camlibs/jl2005c/library.c
index 1c31590e7..c896a455e 100644
--- a/camlibs/jl2005c/library.c
+++ b/camlibs/jl2005c/library.c
@@ -460,7 +460,7 @@ camera_init (Camera *camera, GPContext *context)
GP_DEBUG ("Initializing the camera\n");
ret = gp_port_get_settings(camera->port,&settings);
- if (ret < 0) return ret;
+ if (ret < 0) return ret;
switch (camera->port->type) {
case GP_PORT_SERIAL: