path: root/include
authorSergey Poznyakoff <>2017-08-14 13:10:58 (GMT)
committer Sergey Poznyakoff <>2017-08-14 13:14:24 (GMT)
commit5938aedc98430070bc009c88696829462e7bd273 (patch) (side-by-side diff)
treebacd78a135892aede7a89811ac35ce30d95ff7e9 /include
parent4e9e225408eeaa1f161ae366f68715529bea2d2a (diff)
Fix grecs_node_unlink function; implement grecs_sockaddr_str.
* include/grecs/sockaddr.h (grecs_sockaddr) <str>: New member. (grecs_sockaddr_to_str): New proto. * src/sockaddr.c (grecs_sockaddr_new): Initialize str. (grecs_sockaddr_free): Free str. (grecs_sockaddr_str): New function. * src/tree.c (grecs_node_unlink): Fix.
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
1 files changed, 3 insertions, 1 deletions
diff --git a/include/grecs/sockaddr.h b/include/grecs/sockaddr.h
index c8a3de2..835f698 100644
--- a/include/grecs/sockaddr.h
+++ b/include/grecs/sockaddr.h
@@ -1,5 +1,5 @@
/* grecs - Gray's Extensible Configuration System -*- c -*-
- Copyright (C) 2007-2016 Sergey Poznyakoff
+ Copyright (C) 2007-2017 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -20,6 +20,7 @@
struct grecs_sockaddr {
struct grecs_sockaddr *next;
+ char *str;
int len;
struct sockaddr *sa;
@@ -45,6 +46,7 @@ void grecs_sockaddr_free(struct grecs_sockaddr *p);
int grecs_str_to_sockaddr(struct grecs_sockaddr **sap,
const char *arg, struct grecs_sockaddr_hints *gh,
grecs_locus_t const *locus);
+char const *grecs_sockaddr_to_str(struct grecs_sockaddr *);

Return to:

Send suggestions and report system problems to the System administrator.