summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2015-02-11 10:11:48 +0100
committerDidier Raboud <odyx@debian.org>2015-02-11 10:11:48 +0100
commitcaf29f9b4b4b7beb6c9877790b77bcd1d5914ed5 (patch)
tree5ac88811d164f3ddca0cb82e3e90131f636921cd
parent291ae9a0c75d0a99df47a067218b696fad41e58f (diff)
Fix the aquire->acquire typo
-rw-r--r--src/ippusbxd.c6
-rw-r--r--src/usb.c4
-rw-r--r--src/usb.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/ippusbxd.c b/src/ippusbxd.c
index 571b6f3..95f161e 100644
--- a/src/ippusbxd.c
+++ b/src/ippusbxd.c
@@ -61,13 +61,13 @@ static void *service_connection(void *arg_void)
ERR_AND_EXIT("Got null packet from tcp");
}
if (usb == NULL) {
- usb = usb_conn_aquire(arg->usb_sock, 1);
+ usb = usb_conn_acquire(arg->usb_sock, 1);
if (usb == NULL) {
- ERR("Failed to aquire usb interface");
+ ERR("Failed to acquire usb interface");
packet_free(pkt);
goto cleanup_subconn;
}
- NOTE("Interface #%d: aquired usb conn",
+ NOTE("Interface #%d: acquired usb conn",
usb->interface_index);
}
diff --git a/src/usb.c b/src/usb.c
index 8baf2fa..a5a3baa 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -195,7 +195,7 @@ found_device:
(uint8_t)selected_config,
&config);
if (status != 0 || config == NULL) {
- ERR("Failed to aquire config descriptor");
+ ERR("Failed to acquire config descriptor");
goto error;
}
@@ -454,7 +454,7 @@ static int usb_all_conns_staled(struct usb_sock_t *usb)
return staled;
}
-struct usb_conn_t *usb_conn_aquire(struct usb_sock_t *usb,
+struct usb_conn_t *usb_conn_acquire(struct usb_sock_t *usb,
int is_high_priority)
{
int used_high_priority = 0;
diff --git a/src/usb.h b/src/usb.h
index ef37947..46a27da 100644
--- a/src/usb.h
+++ b/src/usb.h
@@ -64,7 +64,7 @@ void usb_close(struct usb_sock_t *);
int usb_can_callback(struct usb_sock_t *);
void usb_register_callback(struct usb_sock_t *);
-struct usb_conn_t *usb_conn_aquire(struct usb_sock_t *, int);
+struct usb_conn_t *usb_conn_acquire(struct usb_sock_t *, int);
void usb_conn_release(struct usb_conn_t *);
void usb_conn_packet_send(struct usb_conn_t *, struct http_packet_t *);