From 3cb3c20b7451ef4a7bc857026e2bc28b171fbb0f Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Sat, 31 May 2014 00:49:17 -0300 Subject: Fix some "out of memory" comments and few cosmetics --- src/nvim/charset.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nvim/charset.c') diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 948cb7e569..549c926763 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -9,6 +9,7 @@ #include "nvim/vim.h" #include "nvim/charset.h" #include "nvim/farsi.h" +#include "nvim/func_attr.h" #include "nvim/main.h" #include "nvim/mbyte.h" #include "nvim/memline.h" @@ -321,12 +322,12 @@ void trans_characters(char_u *buf, int bufsize) } /// Translate a string into allocated memory, replacing special chars with -/// printable chars. Returns NULL when out of memory. +/// printable chars. /// /// @param s /// /// @return translated string -char_u *transstr(char_u *s) +char_u *transstr(char_u *s) FUNC_ATTR_NONNULL_RET { char_u *res; char_u *p; -- cgit