Skip to content

Commit

Permalink
Fixed compilation error on linux gcc
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Ritterbusch <[email protected]>
  • Loading branch information
kairibu authored and JoshBlake committed Dec 17, 2010
1 parent 559b45e commit 2e33d2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cameras.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static int stream_process(freenect_context *ctx, packet_stream *strm, uint8_t *p
if (len < 12)
return 0;

struct pkt_hdr *hdr = (pkt_hdr*)pkt;
struct pkt_hdr *hdr = (struct pkt_hdr*)pkt;
uint8_t *data = pkt + sizeof(*hdr);
int datalen = len - sizeof(*hdr);

Expand Down
2 changes: 1 addition & 1 deletion src/usb_libusb10.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ int fnusb_start_iso(fnusb_dev *dev, fnusb_isoc_stream *strm, fnusb_iso_cb cb, in
strm->pkts = pkts;
strm->len = len;
strm->buffer = (uint8_t*)malloc(xfers * pkts * len);
strm->xfers = (libusb_transfer**)malloc(sizeof(struct libusb_transfer*) * xfers);
strm->xfers = (struct libusb_transfer**)malloc(sizeof(struct libusb_transfer*) * xfers);
strm->dead = 0;
strm->dead_xfers = 0;

Expand Down

0 comments on commit 2e33d2a

Please sign in to comment.