Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
* Read/write strings from/to a struct buffer with a u16 length prefix.
*/
+static bool
+write_empty_string (struct buffer *buf)
+{
+ if (!buf_write_u16 (buf, 0))
+ return false;
+ return true;
+}
+
static bool
write_string (struct buffer *buf, const char *str, const int maxlen)
{
return true;
}
-static bool
-write_empty_string (struct buffer *buf)
-{
- if (!buf_write_u16 (buf, 0))
- return false;
- return true;
-}
-
static bool
read_string (struct buffer *buf, char *str, const unsigned int capacity)
{