No need for cast.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4052 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2002-01-31 22:32:40 +00:00
parent f1bc7f5092
commit d7b4cdee7d

View File

@@ -109,7 +109,7 @@ ricoh_send (Camera *camera, GPContext *context, unsigned char cmd,
if (data[i] == 0x10)
break;
}
CR (gp_port_write (camera->port, (char *) data + w, i - w + 1));
CR (gp_port_write (camera->port, data + w, i - w + 1));
if (data[i] == 0x10)
CR (gp_port_write (camera->port, "\x10", 1));
w = i + 1;