mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
introduce pa_xmalloc() and friends
implement module auto loading git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@103 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
24291aff27
commit
46091a9237
61 changed files with 700 additions and 631 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include <sys/types.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
void pa_make_nonblock_fd(int fd) {
|
||||
int v;
|
||||
|
|
@ -129,8 +130,7 @@ char *pa_sprintf_malloc(const char *format, ...) {
|
|||
int r;
|
||||
va_list ap;
|
||||
|
||||
c = realloc(c, size);
|
||||
assert(c);
|
||||
c = pa_xrealloc(c, size);
|
||||
|
||||
va_start(ap, format);
|
||||
r = vsnprintf(c, size, format, ap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue