~ubuntu-branches/ubuntu/saucy/libgphoto2/saucy-proposed

« back to all changes in this revision

Viewing changes to camlibs/spca50x/spca50x-flash.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-07-31 07:00:09 UTC
  • mfrom: (1.4.4)
  • Revision ID: package-import@ubuntu.com-20130731070009-enrbvg3hry64cxl1
Tags: 2.5.2-0ubuntu1
* New upstream release.
* Drop 01-increase_max_entries.patch, 02-libusbx_no_debug.patch,
  03-libusbx-fixes.patch: fixed upstream.
* Add libxml2-dev build dependency for new optional features.
* ABI changes: libgphoto2-2 → libgphoto2-6,
  libgphoto2-port0 → libgphoto2-port10
* debian/libgphoto2-dev-doc.install: Adjust to changed HTML API doc folder
  name.
* debian/libgphoto2-port10.install: Adjust for changed libgphoto-port ABI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
/* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */
27
27
/* Boston, MA 02111-1307, USA.                                  */
28
28
/****************************************************************/
 
29
#define _BSD_SOURCE
 
30
 
29
31
#include "config.h"
30
32
#include <string.h>
31
33
#include <stdio.h>
981
983
        };
982
984
 
983
985
        int len = sizeof (jpReg) / sizeof (jpReg[0]);
984
 
        uint8_t bytes[4];
 
986
        uint8_t bytes[7];
985
987
        int i;
986
988
 
987
989
        if (pl->fw_rev == 1) {
1023
1025
                                        NULL, 0x00));
1024
1026
 
1025
1027
        } else {
1026
 
 
1027
 
                uint8_t bytes[7];
1028
1028
                time_t t;
1029
1029
                struct tm *ftm;
1030
 
                int i;
1031
1030
 
1032
1031
                /* firmware detection */
1033
1032
                CHECK (gp_port_usb_msg_read (pl->gpdev, 0x20, 0x0000, 0x0000,