7 Commits

Author SHA1 Message Date
axxel
f41df32817 fix white-space and indentation inconsistencies (second round)
This is basically a continuation of the work from #1002 but her for the
camlibs directory. The purpose was to replace spaces as a means for
indentation with tab characters.

Note: there are some files which are still offending the general
rule but are (mostly) consistent within themselves. I let them be for
the moment. Fixing them would basically replace the whole file.

Also: there are still a ton of whitespace related inconsistencies like
"x=10" vs "x = 10" or "func(10)" vs "func (10)".

This is a whitespace only change (if you include newlines as whitespace).
2024-09-15 10:53:41 +02:00
Hans Ulrich Niedermann
67ae87e169 Fix -Wcalloc-transposed-args warnings
This switches the arguments of calloc() in a few cases such that
the sizeof() does not happen in the nmemb first argument.

An example warning would be
warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]

This is the variant of commit f97c27efe9
with the typo removed which broke compilation.
2024-01-31 23:21:24 +01:00
Hans Ulrich Niedermann
a57b7d8f05 Revert "Fix -Wcalloc-transposed-args warnings"
This reverts commit f97c27efe9.
2024-01-31 23:18:45 +01:00
Hans Ulrich Niedermann
f97c27efe9 Fix -Wcalloc-transposed-args warnings
This switches the arguments of calloc() in a few cases such that
the sizeof() does not happen in the nmemb first argument.

An example warning would be
warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
2024-01-31 23:00:11 +01:00
Marcus Meissner
63c99943a0 handle "no camera" case
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15100 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 06:30:49 +00:00
Marcus Meissner
ca55fb156d fixed sample_open_camera to load the abilities and portinfolist
(was done by sample_autodetect before)


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14352 67ed7778-7388-44ab-90cf-0a291f65f57c
2013-04-25 07:39:18 +00:00
Marcus Meissner
7517274246 added
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11376 67ed7778-7388-44ab-90cf-0a291f65f57c
2008-10-12 19:43:22 +00:00