diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-13 21:27:38 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-13 21:27:38 +0200 |
commit | aaedbf93f1a8e6da3fbd2ce7433888d45c9efe5f (patch) | |
tree | 487cb4236e25ffea6cce60c2ab517760898fadce /src/common.c | |
parent | 03ec980f269c8222eaeeb3bbae8c3cab20595bfd (diff) | |
download | xK-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.c | 7 |
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; |