mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
storage: Return const char *
This commit is contained in:
parent
9cef1490c5
commit
432ec3e69f
@ -192,7 +192,8 @@ static char *get_network_file_path(const char *type, const char *ssid)
|
|||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *storage_network_ssid_from_path(const char *path, enum security *type)
|
const char *storage_network_ssid_from_path(const char *path,
|
||||||
|
enum security *type)
|
||||||
{
|
{
|
||||||
const char *filename = strrchr(path, '/');
|
const char *filename = strrchr(path, '/');
|
||||||
const char *c, *end;
|
const char *c, *end;
|
||||||
|
@ -31,7 +31,8 @@ ssize_t read_file(void *buffer, size_t len, const char *path_fmt, ...)
|
|||||||
ssize_t write_file(const void *buffer, size_t len, const char *path_fmt, ...)
|
ssize_t write_file(const void *buffer, size_t len, const char *path_fmt, ...)
|
||||||
__attribute__((format(printf, 3, 4)));
|
__attribute__((format(printf, 3, 4)));
|
||||||
|
|
||||||
char *storage_network_ssid_from_path(const char *path, enum security *type);
|
const char *storage_network_ssid_from_path(const char *path,
|
||||||
|
enum security *type);
|
||||||
|
|
||||||
struct l_settings *storage_network_open(const char *type, const char *ssid);
|
struct l_settings *storage_network_open(const char *type, const char *ssid);
|
||||||
int storage_network_touch(const char *type, const char *ssid);
|
int storage_network_touch(const char *type, const char *ssid);
|
||||||
|
Loading…
Reference in New Issue
Block a user