summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-13 21:27:38 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-13 21:27:38 +0200
commitaaedbf93f1a8e6da3fbd2ce7433888d45c9efe5f (patch)
tree487cb4236e25ffea6cce60c2ab517760898fadce /src/common.c
parent03ec980f269c8222eaeeb3bbae8c3cab20595bfd (diff)
downloadxK-aaedbf93f1a8e6da3fbd2ce7433888d45c9efe5f.tar.gz
xK-aaedbf93f1a8e6da3fbd2ce7433888d45c9efe5f.tar.xz
xK-aaedbf93f1a8e6da3fbd2ce7433888d45c9efe5f.zip
Load an MOTD on start
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index 8ec6646..f35493f 100644
--- a/src/common.c
+++ b/src/common.c
@@ -278,6 +278,13 @@ str_vector_free (struct str_vector *self)
}
static void
+str_vector_reset (struct str_vector *self)
+{
+ str_vector_free (self);
+ str_vector_init (self);
+}
+
+static void
str_vector_add_owned (struct str_vector *self, char *s)
{
self->vector[self->len] = s;