Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/include/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern int grep(char **, char *);
extern char * strcasestr(const char *, const char *);
extern char * strjoin(const char *, ...);
extern void spit(const char *, const char *);
extern const char const * plain_md5(const char *);
extern char const * plain_md5(const char *);

#if ((defined(__FreeBSD__) || defined(__OpenBSD__)) || defined(__darwin__) || (defined (__SVR4) && defined (__sun)) && !defined(__STRNDUP__))
#define __STRNDUP__
Expand Down
2 changes: 1 addition & 1 deletion source/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifdef __cplusplus
const struct _json_value json_value_none; /* zero-d by ctor */
#else
const struct _json_value json_value_none = { 0 };
const struct _json_value json_value_none = {};
#endif

#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions source/rest.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

static int cmpstringp(const void *, const void *);
static int restore_key(const char *, char *);
const char const * build_signature(struct hash *);
char const * build_signature(struct hash *);
void create_token();


Expand Down Expand Up @@ -123,7 +123,7 @@ void create_token(void) {
}


const char const * build_signature(struct hash * p) {
char const * build_signature(struct hash * p) {
static char signature[32 + 1] = { 0, };
unsigned n, length = 0;
char ** const names = malloc(sizeof(char *) * p->size);
Expand Down
2 changes: 1 addition & 1 deletion source/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ char * strcasestr(const char * haystack, const char * needle) {
#endif


const char const * plain_md5(const char * input) {
char const * plain_md5(const char * input) {
const unsigned char * md5;
static char plain[32 + 1] = { 0, };
unsigned ndigit;
Expand Down