Skip to content

Commit 9d2d414

Browse files
committed
Remove include <malloc.h>
malloc() is in <stdlib.h>.
1 parent c93d0d0 commit 9d2d414

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

char_vector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#include <assert.h>
44
#include <errno.h>
5-
#include <malloc.h>
65
#include <stdint.h>
6+
#include <stdlib.h>
77
#include <string.h>
88

99
#ifndef SIZE_MAX

lib_mysqludf_str.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- coding: utf-8; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: t -*- */
22
/*
33
lib_mysqludf_str - a library of functions to work with strings
4-
Copyright © 2011 Daniel Trebbien <[email protected]>
4+
Copyright © 2013 Daniel Trebbien <[email protected]>
55
Copyright © 2007 Claudio Cherubino <[email protected]>
66
web: http://www.mysqludf.org/lib_mysqludf_str/
77
@@ -25,7 +25,6 @@
2525

2626
#include <ctype.h>
2727
#include <limits.h>
28-
#include <malloc.h>
2928
#include <stdint.h>
3029
#include <stdio.h>
3130
#include <stdlib.h>

0 commit comments

Comments
 (0)