Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
multipath-tools
multipath-tools-fix-malloc-debug
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File multipath-tools-fix-malloc-debug of Package multipath-tools
commit 673e9635881a859c9269b608469cd5e41ad0ba03 Author: Hannes Reinecke <hare@suse.de> Date: Wed Jan 28 09:19:36 2009 +0100 Correct definition of dbg_malloc() Any malloc function should return 'void *' to avoid type mismatch errors. Signed-off-by: Hannes Reinecke <hare@suse.de> diff --git a/libmultipath/memory.c b/libmultipath/memory.c index 71dfe40..f4cc69a 100644 --- a/libmultipath/memory.c +++ b/libmultipath/memory.c @@ -93,7 +93,7 @@ static int number_alloc_list = 0; static int n = 0; /* Alloc list pointer */ static int f = 0; /* Free list pointer */ -char * +void * dbg_malloc(unsigned long size, char *file, char *function, int line) { void *buf; diff --git a/libmultipath/memory.h b/libmultipath/memory.h index ab98094..882699b 100644 --- a/libmultipath/memory.h +++ b/libmultipath/memory.h @@ -55,7 +55,7 @@ int debug; (__FILE__), (char *)(__FUNCTION__), (__LINE__)) ) /* Memory debug prototypes defs */ -extern char *dbg_malloc(unsigned long, char *, char *, int); +extern void *dbg_malloc(unsigned long, char *, char *, int); extern int dbg_free(void *, char *, char *, int); extern void *dbg_realloc(void *, unsigned long, char *, char *, int); extern char *dbg_strdup(char *, char *, char *, int);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor