Skip to content
Snippets Groups Projects
Commit f8af548d authored by Jakob Olsson's avatar Jakob Olsson
Browse files

header dongle_pin change

parent c34a4275
No related tags found
No related merge requests found
...@@ -170,6 +170,7 @@ void free_device(struct device *dev) ...@@ -170,6 +170,7 @@ void free_device(struct device *dev)
{ {
if (!dev) if (!dev)
return; return;
free(dev->ip); free(dev->ip);
free(&(dev->usb)); free(&(dev->usb));
} }
...@@ -178,6 +179,7 @@ void free_usb(struct USB *usb) ...@@ -178,6 +179,7 @@ void free_usb(struct USB *usb)
{ {
if (!usb) if (!usb)
return; return;
free(usb->product); free(usb->product);
free(usb->product_id); free(usb->product_id);
free(usb->vendor_id); free(usb->vendor_id);
......
...@@ -2,5 +2,9 @@ ...@@ -2,5 +2,9 @@
#define PIN_H #define PIN_H
#include "common.h" #include "common.h"
int expose_pin_object(struct ubus_context *ctx); static int isdigits(const char *pin);
static int validate_puk_format(char *puk);
static int validate_pin_format(char *pin);
int pin_status(struct blob_buf *bb)
int check_response(struct json_object *response)
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment