Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bce319e4 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Change the chameleon_asprintf prototype to match asprintf

parent 9610ba58
No related branches found
No related tags found
1 merge request!340descriptor: Add a rank_of_init function to store the initial distribution, and...
...@@ -119,19 +119,19 @@ void chameleon_pclag2z(CHAM_context_t *chamctxt); ...@@ -119,19 +119,19 @@ void chameleon_pclag2z(CHAM_context_t *chamctxt);
*/ */
#if defined(__GNUC__) #if defined(__GNUC__)
static inline void chameleon_asprintf( char **strp, const char *fmt, ... ) __attribute__((format(printf,2,3))); static inline int chameleon_asprintf( char **strp, const char *fmt, ... ) __attribute__((format(printf,2,3)));
#endif #endif
static inline void chameleon_asprintf( char **strp, const char *fmt, ... ) static inline int chameleon_asprintf( char **strp, const char *fmt, ... )
{ {
va_list ap; va_list ap;
int rc; int rc;
va_start( ap, fmt ); va_start( ap, fmt );
rc = asprintf( strp, fmt, ap ); rc = asprintf( strp, fmt, ap );
va_end(ap); va_end( ap );
assert( rc != -1 ); assert( rc != -1 );
(void)rc; return rc;
} }
#ifdef __cplusplus #ifdef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment