diff options
author | Kumar Gala <kumar.gala@linaro.org> | 2017-01-27 14:39:06 -0600 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2017-01-30 12:01:49 +0000 |
commit | 97d375eead0512e7dae3a62a2388f7a02f22f36d (patch) | |
tree | 7ccb204199e8fedbc721023acfd3057858ad602c /samples | |
parent | 99937a77daeebbc315f6654252af0d1321b97bcc (diff) |
samples: webusb: fix type of bytes_read
bytes_read should be an int, all uses of it in this sample are of type
int. Lets clean this up so when building with newlib or in the future
when uint32_t might change its definition we don't have issues.
Change-Id: Ief7bfb48948df50cec45b4707ef7676d13173f34
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/usb/webusb/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/usb/webusb/src/main.c b/samples/usb/webusb/src/main.c index e1674dca8..ec0d93654 100644 --- a/samples/usb/webusb/src/main.c +++ b/samples/usb/webusb/src/main.c @@ -176,8 +176,8 @@ static struct webusb_req_handlers req_handlers = { void main(void) { struct device *dev; - uint32_t baudrate, bytes_read, dtr = 0; - int ret; + uint32_t baudrate, dtr = 0; + int ret, bytes_read; dev = device_get_binding(WEBUSB_SERIAL_PORT_NAME); if (!dev) { |