mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Merge branch 'master' into bplane
Conflicts: VERSION Changed mallocMagic() argument to size_t to match change in master branch (essentially an ineffectual change).
This commit is contained in:
+3
-3
@@ -92,7 +92,7 @@ static char *freeDelayedItem = NULL;
|
||||
|
||||
void *
|
||||
mallocMagic(nbytes)
|
||||
unsigned int nbytes;
|
||||
size_t nbytes;
|
||||
{
|
||||
void *p;
|
||||
|
||||
@@ -150,12 +150,12 @@ freeMagic(cp)
|
||||
|
||||
void *
|
||||
callocMagic(nbytes)
|
||||
unsigned int nbytes;
|
||||
size_t nbytes;
|
||||
{
|
||||
void *cp;
|
||||
|
||||
cp = mallocMagic(nbytes);
|
||||
bzero(cp, (int) nbytes);
|
||||
bzero(cp, (size_t) nbytes);
|
||||
|
||||
return (cp);
|
||||
}
|
||||
|
||||
+2
-2
@@ -22,8 +22,8 @@
|
||||
#ifndef _MALLOC_H
|
||||
#define _MALLOC_H
|
||||
|
||||
extern void *mallocMagic(unsigned int);
|
||||
extern void *callocMagic(unsigned int);
|
||||
extern void *mallocMagic(size_t);
|
||||
extern void *callocMagic(size_t);
|
||||
extern void freeMagic(void *);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user