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;
|
||||
}
|
||||
|
||||
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 *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, ...)
|
||||
__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);
|
||||
int storage_network_touch(const char *type, const char *ssid);
|
||||
|
|
Loading…
Reference in New Issue