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
4 changes: 2 additions & 2 deletions src/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void *n_malloc(int size, const char *file, int line)
#ifdef DEBUG_MEM
size_t size2;
int i = 0;
char *p;
const char *p;
#endif

x = (void *) malloc(size);
Expand Down Expand Up @@ -378,7 +378,7 @@ void *n_realloc(void *ptr, int size, const char *file, int line)
void *x;
#ifdef DEBUG_MEM
int i = 0;
char *p;
const char *p;
#endif

/* ptr == NULL is valid. Avoiding duplicate code further down */
Expand Down
3 changes: 2 additions & 1 deletion src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ char *newsplit(char **rest)
void maskaddr(const char *s, char *nw, int type)
{
int d = type % 5, num = 1;
char *p, *u = 0, *h = 0, *ss;
const char *p, *u = 0, *h = 0;
char *ss;

/* Look for user and host.. */
ss = (char *)s;
Expand Down
Loading