summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-02-06 19:01:24 +0800
committersakumisu <[email protected]>2022-02-06 19:01:24 +0800
commit3715384feee52364d87c0852423c670ebd09dc75 (patch)
tree3f4c5f336388ecdc9d86339728e47bdd690c8c31
parent9cc7ca1a9ba65804fe1b7eaadfdcfe0d1d9c9d40 (diff)
replace ssize_t with int
-rw-r--r--class/cdc/usbh_cdc_acm.c4
-rw-r--r--class/hid/usbh_hid.c2
-rw-r--r--class/hub/usbh_hub.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/class/cdc/usbh_cdc_acm.c b/class/cdc/usbh_cdc_acm.c
index ba4790fa..27d51584 100644
--- a/class/cdc/usbh_cdc_acm.c
+++ b/class/cdc/usbh_cdc_acm.c
@@ -27,7 +27,7 @@
static uint32_t g_devinuse = 0;
-void usbh_cdc_acm_callback(void *arg, ssize_t nbytes);
+void usbh_cdc_acm_callback(void *arg, int nbytes);
/****************************************************************************
* Name: usbh_cdc_acm_devno_alloc
@@ -316,7 +316,7 @@ int usbh_cdc_acm_disconnect(struct usbh_hubport *hport, uint8_t intf)
return ret;
}
-void usb_cdc_acm_callback(void *arg, ssize_t result)
+void usb_cdc_acm_callback(void *arg, int result)
{
printf("result:%d\r\n", result);
}
diff --git a/class/hid/usbh_hid.c b/class/hid/usbh_hid.c
index c149216f..b7aff16f 100644
--- a/class/hid/usbh_hid.c
+++ b/class/hid/usbh_hid.c
@@ -161,7 +161,7 @@ int usbh_hid_get_idle(struct usbh_hubport *hport, uint8_t intf, uint8_t *buffer)
USB_NOCACHE_RAM_SECTION uint8_t report_buffer[128];
-void usbh_hid_callback(void *arg, ssize_t nbytes)
+void usbh_hid_callback(void *arg, int nbytes)
{
printf("nbytes:%d\r\n", nbytes);
}
diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c
index 992b6aef..9db9c0b2 100644
--- a/class/hub/usbh_hub.c
+++ b/class/hub/usbh_hub.c
@@ -35,7 +35,7 @@ extern void usbh_external_hport_disconnect(struct usbh_hubport *hport);
extern void usbh_hport_activate(struct usbh_hubport *hport);
extern void usbh_hport_deactivate(struct usbh_hubport *hport);
-static void usbh_external_hub_callback(void *arg, ssize_t nbytes);
+static void usbh_external_hub_callback(void *arg, int nbytes);
static inline void usbh_hub_register(struct usbh_hub *hub)
{
@@ -468,7 +468,7 @@ static void usbh_extern_hub_psc_event(void *arg)
usb_osal_leave_critical_section(flags);
}
-static void usbh_external_hub_callback(void *arg, ssize_t nbytes)
+static void usbh_external_hub_callback(void *arg, int nbytes)
{
struct usbh_hub *hub_class = (struct usbh_hub *)arg;
uint32_t delay = 0;