chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some configuration-related memory hygeine.
[disorder]
/
lib
/
configuration.h
diff --git
a/lib/configuration.h
b/lib/configuration.h
index 9170a2f2b752c118e937099a1fa38e116a4015d1..f1794aa1c5b92dd03d316932ea544dc5c7982cc5 100644
(file)
--- a/
lib/configuration.h
+++ b/
lib/configuration.h
@@
-195,10
+195,10
@@
struct config {
const char *home;
/** @brief Login username */
const char *home;
/** @brief Login username */
- c
onst c
har *username;
+ char *username;
/** @brief Login password */
/** @brief Login password */
- c
onst c
har *password;
+ char *password;
/** @brief Address to connect to */
struct netaddress connect;
/** @brief Address to connect to */
struct netaddress connect;
@@
-320,6
+320,8
@@
char *config_usersysconf(const struct passwd *pw );
char *config_private(void);
/* get the private config file */
char *config_private(void);
/* get the private config file */
+void config_free(struct config *c);
+
extern char *configfile;
extern int config_per_user;
extern char *configfile;
extern int config_per_user;