summaryrefslogtreecommitdiff
path: root/camlibs/sonydscf1
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:10:32 +0000
committerMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:10:32 +0000
commitc1ddde0315005e55ef361720b8b758fa163b1731 (patch)
treeef0d7fdd0ebcc010cd1c50e697eb01ddb86f2421 /camlibs/sonydscf1
parent9e777504d448e26ace9a56f509a13a1f8fbbcf55 (diff)
downloadlibgphoto2-c1ddde0315005e55ef361720b8b758fa163b1731.tar.gz
From: "Daniel P. Berrange" <berrange@redhat.com>
A great many functions have variables which are set to some value, but never read thereafter. All these variables can be removed with no functional impact. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14896 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/sonydscf1')
-rw-r--r--camlibs/sonydscf1/command.c6
-rw-r--r--camlibs/sonydscf1/sonydscf1.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/camlibs/sonydscf1/command.c b/camlibs/sonydscf1/command.c
index 360d51c70..c0ce0bd72 100644
--- a/camlibs/sonydscf1/command.c
+++ b/camlibs/sonydscf1/command.c
@@ -115,13 +115,12 @@ static int recvdata(GPPort *port, unsigned char *p, int len)
char F1newstatus(GPPort *port, int verbose, char *return_buf)
{
unsigned char buf[34];
- int i;
char status_buf[1000]="";
char tmp_buf[150]="";
buf[0] = 0x03;
buf[1] = 0x02;
sendcommand(port,buf, 2);
- i = recvdata(port, buf, 33);
+ recvdata(port, buf, 33);
#ifdef DEBUG
fprintf(stderr,"Status: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i);
#endif
@@ -172,12 +171,11 @@ int F1status(GPPort *port)
{
unsigned char buf[34];
- int i;
buf[0] = 0x03;
buf[1] = 0x02;
sendcommand(port,buf, 2);
- i = recvdata(port, buf, 33);
+ recvdata(port, buf, 33);
#ifdef DEBUG
fprintf(stderr,"Status: %02x%02x:%02x(len = %d)\n", buf[0], buf[1], buf[2], i);
#endif
diff --git a/camlibs/sonydscf1/sonydscf1.c b/camlibs/sonydscf1/sonydscf1.c
index 2bfda6e12..bcc3acd5b 100644
--- a/camlibs/sonydscf1/sonydscf1.c
+++ b/camlibs/sonydscf1/sonydscf1.c
@@ -148,14 +148,13 @@ get_picture_information(GPPort *port,int *pmx_num, int outit)
{
unsigned char buforg[PMF_MAXSIZ];
char name[64];
- long len;
int i, n;
int j, k;
char *buf = (char *) &buforg;
strcpy(name, "/PIC_CAM/PIC00000/PIC_INF.PMF");
F1ok(port);
- len = F1getdata(port, name, buf);
+ F1getdata(port, name, buf);
n = buf[26] * 256 + buf[27]; /* how many files */
*pmx_num = buf[31]; /* ??? */