summaryrefslogtreecommitdiff
path: root/examples
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 /examples
parentaf2c0e0558e78cae06371abef36f43ca74a9c5c0 (diff)
downloadlibgphoto2-456a1d598bccc260b233d2e91c469be452e0fbef.tar.gz
Remove trailing whitespace from all *.h and *.c files.
Diffstat (limited to 'examples')
-rw-r--r--examples/best-iso.c2
-rw-r--r--examples/config.c2
-rw-r--r--examples/focus.c2
-rw-r--r--examples/lunkwill-canon-capture.c4
-rw-r--r--examples/preview.c4
-rw-r--r--examples/sample-afl.c2
-rw-r--r--examples/sample-capture.c6
-rw-r--r--examples/sample-owner.c2
-rw-r--r--examples/sample-photobooth.c2
-rw-r--r--examples/sample-tether.c2
-rw-r--r--examples/sample-trigger-capture.c6
11 files changed, 17 insertions, 17 deletions
diff --git a/examples/best-iso.c b/examples/best-iso.c
index 84f96367a..0516cc42f 100644
--- a/examples/best-iso.c
+++ b/examples/best-iso.c
@@ -1,4 +1,4 @@
-/*
+/*
* This program tries various ISOs for best ISO with a shutterspeed limit
*
* compile with: gcc -Wall -o best-iso best-iso.c -lgphoto2 -lgphoto2_port
diff --git a/examples/config.c b/examples/config.c
index e3ff63e32..fd07a3a23 100644
--- a/examples/config.c
+++ b/examples/config.c
@@ -155,7 +155,7 @@ out:
/*
* This enables/disables the specific canon capture mode.
- *
+ *
* For non canons this is not required, and will just return
* with an error (but without negative effects).
*/
diff --git a/examples/focus.c b/examples/focus.c
index d7ae3f6fa..cb896ab10 100644
--- a/examples/focus.c
+++ b/examples/focus.c
@@ -190,7 +190,7 @@ camera_manual_focus (Camera *camera, int xx, GPContext *context) {
fprintf (stderr, "could not get widget value: %d\n", ret);
goto out;
}
-
+
switch (xx) { /* Range is on Nikon from -32768 <-> 32768 */
case -3: rval = -1024;break;
case -2: rval = -512;break;
diff --git a/examples/lunkwill-canon-capture.c b/examples/lunkwill-canon-capture.c
index f7f4280e6..5ceb04a1d 100644
--- a/examples/lunkwill-canon-capture.c
+++ b/examples/lunkwill-canon-capture.c
@@ -1,13 +1,13 @@
/* compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c
* This code released into the public domain 21 July 2008
- *
+ *
* This program does the equivalent of:
* gphoto2 --shell
* > set-config capture=1
* > capture-image-and-download
* compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c
*
- * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html
+ * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html
*/
#include <stdlib.h>
diff --git a/examples/preview.c b/examples/preview.c
index 162e59664..453be553c 100644
--- a/examples/preview.c
+++ b/examples/preview.c
@@ -1,13 +1,13 @@
/* compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c
* This code released into the public domain 21 July 2008
- *
+ *
* This program does the equivalent of:
* gphoto2 --shell
* > set-config capture=1
* > capture-image-and-download
* compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c
*
- * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html
+ * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html
*/
#include <stdlib.h>
diff --git a/examples/sample-afl.c b/examples/sample-afl.c
index d3520c5f2..4b344350f 100644
--- a/examples/sample-afl.c
+++ b/examples/sample-afl.c
@@ -16,7 +16,7 @@ static void errordumper(GPLogLevel level, const char *domain, const char *str,
fprintf(stderr, "%s:%s\n", domain, str);
}
-static int
+static int
recursive_directory(Camera *camera, const char *folder, GPContext *context, int *foundfile) {
int i, ret;
CameraList *list;
diff --git a/examples/sample-capture.c b/examples/sample-capture.c
index 17d9ec6ec..7a779a17c 100644
--- a/examples/sample-capture.c
+++ b/examples/sample-capture.c
@@ -1,13 +1,13 @@
-/*
+/*
* This code released into the public domain 21 July 2008
- *
+ *
* This program does the equivalent of:
* gphoto2 --shell
* > set-config capture=1
* > capture-image-and-download
* compile with gcc -Wall -o canon-capture -lgphoto2 canon-capture.c
*
- * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html
+ * Taken from: http://credentiality2.blogspot.com/2008/07/linux-libgphoto2-image-capture-from.html
*
* and condensed into simple capture sample
*/
diff --git a/examples/sample-owner.c b/examples/sample-owner.c
index 063caa991..46434daf5 100644
--- a/examples/sample-owner.c
+++ b/examples/sample-owner.c
@@ -47,7 +47,7 @@ int main(int argc, char **argv) {
ret = set_config_value_string (camera, "artist", argv[1], context);
if (ret < GP_OK) {
fprintf (stderr, "Failed to set camera owner to %s; %d\n", argv[1], ret);
- } else
+ } else
printf("New owner: %s\n", argv[1]);
}
out:
diff --git a/examples/sample-photobooth.c b/examples/sample-photobooth.c
index 1a69bef8f..58534fbc8 100644
--- a/examples/sample-photobooth.c
+++ b/examples/sample-photobooth.c
@@ -1,5 +1,5 @@
/* compile with gcc -Wall -o sample-photobooth -lgphoto2 sample-photobooth.c
- *
+ *
*/
#include <stdlib.h>
diff --git a/examples/sample-tether.c b/examples/sample-tether.c
index 92232066e..333eeede1 100644
--- a/examples/sample-tether.c
+++ b/examples/sample-tether.c
@@ -1,4 +1,4 @@
-/*
+/*
* This program does the equivalent of:
* gphoto2 --wait-event-and-download
*
diff --git a/examples/sample-trigger-capture.c b/examples/sample-trigger-capture.c
index b54ccf7d5..1433adce3 100644
--- a/examples/sample-trigger-capture.c
+++ b/examples/sample-trigger-capture.c
@@ -1,4 +1,4 @@
-/*
+/*
*/
#include <stdlib.h>
@@ -47,7 +47,7 @@ wait_event_and_download (Camera *camera, int waittime, GPContext *context) {
gettimeofday (&curtime, NULL);
timediff = ((curtime.tv_sec - start.tv_sec)*1000)+((curtime.tv_usec - start.tv_usec)/1000);
- if (timediff >= waittime)
+ if (timediff >= waittime)
break;
retval = gp_camera_wait_for_event(camera, waittime - timediff, &evtype, &data, context);
@@ -127,7 +127,7 @@ wait_event_and_download (Camera *camera, int waittime, GPContext *context) {
}
if (-1 == lseek(fd, 0, SEEK_SET))
perror("lseek");
- if (-1 == write (fd, buffer, size))
+ if (-1 == write (fd, buffer, size))
perror("write");
close (fd);