storage: Return const char *

This commit is contained in:
Denis Kenzior 2016-06-10 09:59:59 -05:00
parent 9cef1490c5
commit 432ec3e69f
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);