mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
use static to try and hide functions
This commit is contained in:
4
misc.c
4
misc.c
@@ -6,7 +6,7 @@
|
||||
#include "misc.h"
|
||||
|
||||
|
||||
char* dc_strdup(const char* s) /* strdup(NULL) is undefined, save_strdup(NULL) returns an empty string in this case */
|
||||
static char* dc_strdup(const char* s) /* strdup(NULL) is undefined, save_strdup(NULL) returns an empty string in this case */
|
||||
{
|
||||
char* ret = NULL;
|
||||
if (s) {
|
||||
@@ -66,7 +66,7 @@ char* dc_mprintf(const char* format, ...)
|
||||
* pointer is equal to dc_strbuilder_t::buf.
|
||||
* If the given text is NULL, NULL is returned and the string-builder-object is not modified.
|
||||
*/
|
||||
char* dc_strbuilder_cat(dc_strbuilder_t* strbuilder, const char* text)
|
||||
static char* dc_strbuilder_cat(dc_strbuilder_t* strbuilder, const char* text)
|
||||
{
|
||||
// this function MUST NOT call logging functions as it is used to output the log
|
||||
if (strbuilder==NULL || text==NULL) {
|
||||
|
||||
Reference in New Issue
Block a user