From 896cb2eeafecc4680866526eaab333c940447dd7 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Tue, 11 Sep 2001 06:02:27 +0000 Subject: [PATCH] Added comment about positive return values. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2227 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/panasonic/coolshot/README | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/camlibs/panasonic/coolshot/README b/camlibs/panasonic/coolshot/README index 33fbd8a3c..9bb2fc765 100644 --- a/camlibs/panasonic/coolshot/README +++ b/camlibs/panasonic/coolshot/README @@ -16,4 +16,8 @@ TODO List - file upload capability - better error checking ("fixme"s) & recovery - modify coolshot_file_count to return GP_ code and take *count as argument + Comment by Lutz : Why? Throughout libgphoto2, + we say that negative return values are errors. That is, we do + CHECK_RESULT (pic_num = count_pictures (camera)); everywhere and let + CHECK_RESULT test for a return value < 0.