Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
gwc
gwc-compile-fix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gwc-compile-fix.diff of Package gwc
--- meschach/matrix.h-dist 2006-12-20 13:39:38.000000000 +0100 +++ meschach/matrix.h 2006-12-20 13:40:26.000000000 +0100 @@ -123,9 +123,7 @@ void m_version( void ); /* re-allocate arry to have num objects of the given type */ #define RENEW(var,num,type) \ - ((var)=(type *)((var) ? \ - realloc((char *)(var),(size_t)(num)*sizeof(type)) : \ - calloc((size_t)(num),sizeof(type)))) + ((var)=(type *)realloc((char *)(var),(size_t)(num)*sizeof(type)), (var)) #define MEMCOPY(from,to,n_items,type) \ MEM_COPY((char *)(from),(char *)(to),(size_t)(n_items)*sizeof(type)) @@ -139,9 +137,7 @@ void m_version( void ); /* re-allocate arry to have num objects of the given type */ #define RENEW(var,num,type) \ - ((var)=(type *)((var) ? \ - realloc((char *)(var),(size_t)((num)*sizeof(type))) : \ - calloc((size_t)(num),(size_t)sizeof(type)))) + ((var)=(type *)realloc((char *)(var),(size_t)((num)*sizeof(type))), (var)) #define MEMCOPY(from,to,n_items,type) \ MEM_COPY((char *)(from),(char *)(to),(unsigned)(n_items)*sizeof(type))
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