Skip to content

Commit

Permalink
* Replaced malloc.h with stdlib.h, as the former is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
amdmi3@hades.panopticon authored and bobbens committed Nov 24, 2008
1 parent a12bd4a commit e95e382
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "base64.h"

#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion src/faction.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "faction.h"

#include <malloc.h>
#include <stdlib.h>
#include <string.h>

#include "xml.h"
Expand Down
2 changes: 1 addition & 1 deletion src/hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "hook.h"

#include <malloc.h>
#include <stdlib.h>
#include <string.h>

#include "log.h"
Expand Down
2 changes: 1 addition & 1 deletion src/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "map.h"

#include <malloc.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>

Expand Down
2 changes: 1 addition & 1 deletion src/mission.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <stdint.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>

#include "nlua.h"
#include "nlua_space.h"
Expand Down
2 changes: 1 addition & 1 deletion src/pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <unistd.h> /* WRITE() */
#include <errno.h> /* error numbers */
#include <string.h> /* strlen() and friends */
#include <malloc.h> /* malloc */
#include <stdlib.h> /* malloc */

#include "log.h"
#include "md5.h"
Expand Down
1 change: 1 addition & 0 deletions src/pack.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <stdio.h>
#endif /* not _POSIX_SOURCE */
#include <stdint.h> /* uint32_t */
#include <sys/types.h> /* ssize_t */


/**
Expand Down
2 changes: 1 addition & 1 deletion src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "player.h"

#include <malloc.h>
#include <stdlib.h>

#include "xml.h"
#include "naev.h"
Expand Down
2 changes: 1 addition & 1 deletion src/space.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "space.h"

#include <malloc.h>
#include <stdlib.h>
#include <math.h>

#include "xml.h"
Expand Down
2 changes: 1 addition & 1 deletion src/unidiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "unidiff.h"

#include <malloc.h>
#include <stdlib.h>
#include <string.h>

#include "naev.h"
Expand Down
2 changes: 1 addition & 1 deletion src/weapon.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "weapon.h"

#include <math.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>

#include "naev.h"
Expand Down
2 changes: 1 addition & 1 deletion utils/mkspr/main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


#include <stdlib.h>
#include <malloc.h>
#include <stdlib.h>

#include <png.h>

Expand Down

0 comments on commit e95e382

Please sign in to comment.