static int romload_prepare_block(void)
{
- int rc, i;
+ int i;
int block_checksum = 5;
int remaining_bytes;
dnload.block_number++;
dnload.serial_fd.when = BSC_FD_READ | BSC_FD_WRITE;
- return rc;
+ return 0;
}
static int mtk_prepare_block(void)
if(srv) {
struct tool_connection *con;
- u_int16_t *len;
+ uint16_t *len;
- len = (u_int16_t *) msgb_push(msg, 2);
+ len = (uint16_t *) msgb_push(msg, 2);
*len = htons(msg->len - sizeof(*len));
llist_for_each_entry(con, &srv->connections, entry) {
static int un_tool_read(struct bsc_fd *fd, unsigned int flags)
{
int rc, c;
- u_int16_t length = 0xffff;
- u_int8_t buf[4096];
+ uint16_t length = 0xffff;
+ uint8_t buf[4096];
struct tool_connection *con = (struct tool_connection *)fd->data;
c = 0;
c += rc;
}
- length = ntohs(*(u_int16_t*)buf);
+ length = ntohs(*(uint16_t*)buf);
c = 0;
while(c < length) {