summaryrefslogtreecommitdiff
path: root/camlibs/jd350e/library.c
diff options
context:
space:
mode:
authorLutz Mueller <lutz@users.sourceforge.net>2001-10-09 09:16:43 +0000
committerLutz Mueller <lutz@users.sourceforge.net>2001-10-09 09:16:43 +0000
commit212c97715bda06b322baf3b92d6e2b205e99f9f3 (patch)
tree19862e47e37f1a18a4d0f557929e539426e58238 /camlibs/jd350e/library.c
parent063ac2418bfc9ea96886c91cfe06cebab39aecf8 (diff)
downloadlibgphoto2-212c97715bda06b322baf3b92d6e2b205e99f9f3.tar.gz
2001-10-09 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/jd3503/library.c: Fix compile warnings by declaring some functions static. * camlibs/jd350e.c: Here, too. #include <stdlib.h>. Use camera->port and camera->fs. First in order to avoid problems with port locking and second for caching. * camlibs/jd350e.h: No filesystem here. Use camera->fs. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2456 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/jd350e/library.c')
-rw-r--r--camlibs/jd350e/library.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/camlibs/jd350e/library.c b/camlibs/jd350e/library.c
index fdbe68e27..5893d5ede 100644
--- a/camlibs/jd350e/library.c
+++ b/camlibs/jd350e/library.c
@@ -49,7 +49,7 @@
#define CMD_IO_TIMEOUT 0x02
#define CMD_BAD_RESPONSE 0x03
-int jd350e_remap_gp_port_error(int error)
+static int jd350e_remap_gp_port_error(int error)
{
switch(error) {
case GP_ERROR_TIMEOUT:
@@ -63,7 +63,7 @@ int jd350e_remap_gp_port_error(int error)
}
}
-unsigned char jd350e_checksum(const unsigned char *data, int start, int end)
+static unsigned char jd350e_checksum(const unsigned char *data, int start, int end)
{
unsigned char sum = 0;
int i;
@@ -78,7 +78,7 @@ unsigned char jd350e_checksum(const unsigned char *data, int start, int end)
return sum;
}
-int jd350e_cmd(struct jd350e_s *device, unsigned char cmd,
+static int jd350e_cmd(struct jd350e_s *device, unsigned char cmd,
unsigned char cmd_len,
unsigned char data1, unsigned char data2, unsigned char data3,
unsigned char data4,
@@ -128,7 +128,7 @@ int jd350e_cmd(struct jd350e_s *device, unsigned char cmd,
return CMD_OK;
}
-int jd350e_try_cmd(struct jd350e_s *device, unsigned char cmd, unsigned char cmd_len,
+static int jd350e_try_cmd(struct jd350e_s *device, unsigned char cmd, unsigned char cmd_len,
unsigned char data1, unsigned char data2, unsigned char data3,
unsigned char data4,
unsigned char *response, unsigned response_len,
@@ -203,7 +203,7 @@ int jd350e_file_count(struct jd350e_s *device, int *count)
}
}
-int jd350e_get_image(struct jd350e_s *device, int image_no, int subcmd,
+static int jd350e_get_image(struct jd350e_s *device, int image_no, int subcmd,
char **data, int *size, int w, int h, int interpolate)
{
unsigned char set_image_no_response[CMD_SET_IMAGE_NUMBER_RLEN],