aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsclient
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-04 15:36:36 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-04 15:36:36 +0200
commit8a60b427b6ff6745be118ae9229169e1d26512b0 (patch)
tree748d856dc1c7fe0fd2df9dfe52a09649794afe92 /src/libmdsclient
parentadd libmds_message_duplicate (diff)
downloadmds-8a60b427b6ff6745be118ae9229169e1d26512b0.tar.gz
mds-8a60b427b6ff6745be118ae9229169e1d26512b0.tar.bz2
mds-8a60b427b6ff6745be118ae9229169e1d26512b0.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libmdsclient')
-rw-r--r--src/libmdsclient/inbound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmdsclient/inbound.c b/src/libmdsclient/inbound.c
index 7b8a0fc..6fcd8ec 100644
--- a/src/libmdsclient/inbound.c
+++ b/src/libmdsclient/inbound.c
@@ -114,8 +114,8 @@ libmds_message_t* libmds_message_duplicate(libmds_message_t* restrict this)
* @param allow_modified_nul Whether Modified UTF-8 is allowed, which allows a two-byte encoding for NUL
* @return Zero if good, -1 on encoding error
*/
-__attribute__((nonnull, warn_unused_result))
-static int verify_utf8(const char* string, int allow_modified_nul) /* Cannibalised from <libmdsserver/util.h> */
+__attribute__((nonnull, warn_unused_result)) /* Cannibalised from <libmdsserver/util.h>. */
+static int verify_utf8(const char* string, int allow_modified_nul)
{
static long BYTES_TO_MIN_BITS[] = {0, 0, 8, 12, 17, 22, 37};
static long BYTES_TO_MAX_BITS[] = {0, 7, 11, 16, 21, 26, 31};