mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-31 22:29:47 +00:00
Fix compiler warnings
This commit is contained in:
parent
24b1eb4031
commit
afe3612c0c
@ -89,7 +89,7 @@ read_chunk(struct rucb_conn *c, int offset, char *to, int maxsize)
|
|||||||
bytecount += size;
|
bytecount += size;
|
||||||
|
|
||||||
if(bytecount == FILESIZE) {
|
if(bytecount == FILESIZE) {
|
||||||
printf("Completion time %lu / %u\n", (unsigned long)clock_time() - start_time, CLOCK_SECOND);
|
printf("Completion time %lu / %u\n", (unsigned long)clock_time() - start_time, (unsigned int)CLOCK_SECOND);
|
||||||
print_stats();
|
print_stats();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,9 +83,8 @@ write_chunk(struct rudolph1_conn *c, int offset, int flag,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(datalen > 0) {
|
if(datalen > 0) {
|
||||||
int ret;
|
|
||||||
cfs_seek(fd, offset, CFS_SEEK_SET);
|
cfs_seek(fd, offset, CFS_SEEK_SET);
|
||||||
ret = cfs_write(fd, data, datalen);
|
cfs_write(fd, data, datalen);
|
||||||
}
|
}
|
||||||
|
|
||||||
cfs_close(fd);
|
cfs_close(fd);
|
||||||
|
@ -82,9 +82,8 @@ write_chunk(struct rudolph2_conn *c, int offset, int flag,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(datalen > 0) {
|
if(datalen > 0) {
|
||||||
int ret;
|
|
||||||
cfs_seek(fd, offset, CFS_SEEK_SET);
|
cfs_seek(fd, offset, CFS_SEEK_SET);
|
||||||
ret = cfs_write(fd, data, datalen);
|
cfs_write(fd, data, datalen);
|
||||||
printf("+++ rudolph2 offset %d, length %d\n", offset, datalen);
|
printf("+++ rudolph2 offset %d, length %d\n", offset, datalen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user