summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2017-12-06 16:14:56 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2017-12-12 14:06:36 +0100
commit1809b5ae60a6eb54af0813b6393192c7756975c0 (patch)
tree125c3f749b1e69407980c52d6282ff5098111d8d
parente4d9cbf6ccdfc7210b61249146d62a2770573c69 (diff)
downloadlibusbg-1809b5ae60a6eb54af0813b6393192c7756975c0.tar.gz
libusbg-1809b5ae60a6eb54af0813b6393192c7756975c0.tar.bz2
libusbg-1809b5ae60a6eb54af0813b6393192c7756975c0.zip
libusbgx: fix: Correct typo in usbg_rm_file() funciton name
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r--include/usbg/usbg_internal.h2
-rw-r--r--src/usbg.c4
-rw-r--r--src/usbg_common.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/usbg/usbg_internal.h b/include/usbg/usbg_internal.h
index 441df63..1d8dfe2 100644
--- a/include/usbg/usbg_internal.h
+++ b/include/usbg/usbg_internal.h
@@ -262,7 +262,7 @@ int usbg_write_int(const char *path, const char *name, const char *file,
int usbg_write_string(const char *path, const char *name,
const char *file, const char *buf);
-int ubsg_rm_file(const char *path, const char *name);
+int usbg_rm_file(const char *path, const char *name);
int usbg_rm_dir(const char *path, const char *name);
diff --git a/src/usbg.c b/src/usbg.c
index 061f383..957dfbc 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -1221,7 +1221,7 @@ int usbg_rm_binding(usbg_binding *b)
c = b->parent;
- ret = ubsg_rm_file(b->path, b->name);
+ ret = usbg_rm_file(b->path, b->name);
if (ret)
goto out;
@@ -2506,7 +2506,7 @@ static int usbg_rm_os_desc_link(usbg_gadget *g)
goto free_dent;
}
- ret = ubsg_rm_file(bpath, dent[0]->d_name);
+ ret = usbg_rm_file(bpath, dent[0]->d_name);
for (i = 0; i < n; i++)
free(dent[i]);
diff --git a/src/usbg_common.c b/src/usbg_common.c
index b405a3d..f8822fc 100644
--- a/src/usbg_common.c
+++ b/src/usbg_common.c
@@ -211,7 +211,7 @@ int usbg_write_string(const char *path, const char *name,
return ret;
}
-int ubsg_rm_file(const char *path, const char *name)
+int usbg_rm_file(const char *path, const char *name)
{
int ret = USBG_SUCCESS;
int nmb;