Permalink
Browse files

Refactored: moved write_empty_string function back

  • Loading branch information...
andj committed Jun 28, 2011
1 parent 0c33299 commit 360ff2980be50a6d2d8dececa1854807da4a7a1c
Showing with 8 additions and 8 deletions.
  1. +8 −8 ssl.c
View
16 ssl.c
@@ -2776,6 +2776,14 @@ key_state_soft_reset (struct tls_session *session)
* 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)
{
@@ -2789,14 +2797,6 @@ 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)
{

0 comments on commit 360ff29

Please sign in to comment.