diff options
author | Sasha Levitskiy <sanek@google.com> | 2014-05-05 19:43:15 -0700 |
---|---|---|
committer | Sasha Levitskiy <sanek@google.com> | 2014-05-07 11:43:12 -0700 |
commit | 782111b3bc5d372afc8d66ab6023e834b7c23b88 (patch) | |
tree | 77d74cb55bd721c14b9968ffe52aa6c52fff632c /fastboot/fastboot.h | |
parent | 7112e4c7cb9168ddaee418c4ed4b0c54b475f99e (diff) | |
download | system_core-782111b3bc5d372afc8d66ab6023e834b7c23b88.zip system_core-782111b3bc5d372afc8d66ab6023e834b7c23b88.tar.gz system_core-782111b3bc5d372afc8d66ab6023e834b7c23b88.tar.bz2 |
System: Fastboot: warning fixit, misc bugs and cleanup.
Change-Id: Ib8517a852977962de3f05c879ba7dce89bcef644
Signed-off-by: Sasha Levitskiy <sanek@google.com>
Diffstat (limited to 'fastboot/fastboot.h')
-rw-r--r-- | fastboot/fastboot.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h index fc5d4f4..30e79c1 100644 --- a/fastboot/fastboot.h +++ b/fastboot/fastboot.h @@ -29,6 +29,7 @@ #ifndef _FASTBOOT_H_ #define _FASTBOOT_H_ +#include <stdlib.h> #include "usb.h" struct sparse_file; @@ -36,7 +37,7 @@ struct sparse_file; /* protocol.c - fastboot protocol */ int fb_command(usb_handle *usb, const char *cmd); int fb_command_response(usb_handle *usb, const char *cmd, char *response); -int fb_download_data(usb_handle *usb, const void *data, unsigned size); +int fb_download_data(usb_handle *usb, const void *data, size_t size); int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s); char *fb_get_error(void); @@ -47,16 +48,16 @@ char *fb_get_error(void); int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...); int fb_format_supported(usb_handle *usb, const char *partition, const char *type_override); void fb_queue_flash(const char *ptn, void *data, unsigned sz); -void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz); +void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, size_t sz); void fb_queue_erase(const char *ptn); void fb_queue_format(const char *ptn, int skip_if_not_supported, unsigned int max_chunk_sz); void fb_queue_require(const char *prod, const char *var, int invert, unsigned nvalues, const char **value); void fb_queue_display(const char *var, const char *prettyname); -void fb_queue_query_save(const char *var, char *dest, unsigned dest_size); +void fb_queue_query_save(const char *var, char *dest, size_t dest_size); void fb_queue_reboot(void); void fb_queue_command(const char *cmd, const char *msg); -void fb_queue_download(const char *name, void *data, unsigned size); +void fb_queue_download(const char *name, void *data, size_t size); void fb_queue_notice(const char *notice); void fb_queue_wait_for_disconnect(void); int fb_execute_queue(usb_handle *usb); |