summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2007-08-11 18:47:44 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2007-08-11 18:47:44 +0000
commit74e4970f64ab38014eec1aa75418794956d8268a (patch)
tree79e45e86913fd816dbd5d8ee8b38b044bb72d51c /tests
parent066849d7eab73e9c8e5d978697f580e269c7cfe5 (diff)
downloadlibgphoto2-74e4970f64ab38014eec1aa75418794956d8268a.tar.gz
Fix typo, code cosmetics
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10580 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'tests')
-rw-r--r--tests/test-camera-list.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test-camera-list.c b/tests/test-camera-list.c
index 67c1105cb..1555023cb 100644
--- a/tests/test-camera-list.c
+++ b/tests/test-camera-list.c
@@ -30,7 +30,14 @@
#include <gphoto2/gphoto2-camera.h>
#include <gphoto2/gphoto2-port-portability.h>
-#define CHECK(f) {int res = f; if (res < 0) {printf ("ERROR: %s\n", gp_result_as_string (res)); return (1);}}
+#define CHECK(f) \
+ do { \
+ int res = f; \
+ if (res < 0) { \
+ printf ("ERROR: %s\n", gp_result_as_string (res)); \
+ return (1); \
+ } \
+ } while (0)
#ifdef __GNUC__
@@ -204,7 +211,7 @@ main (int argc, char *argv[])
const char *camlib_env = getenv(CAMLIBDIR_ENV);
const char *camlibs = (camlib_env != NULL)?camlib_env:CAMLIBS;
- printf("no camera drivers (camlibs) found in camlib dir:\n"
+ printf("No camera drivers (camlibs) found in camlib dir:\n"
" CAMLIBS='%s', default='%s', used=%s\n",
camlib_env?camlib_env:"(null)", CAMLIBS,
(camlib_env!=NULL)?"CAMLIBS":"default");