diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-09-03 02:59:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-03 20:25:38 +0200 |
commit | 060e34d669ecfed6bc45b6012f824d99a8e316ac (patch) | |
tree | 0979a742e1a8d07f9a2056cf9749bdcecc04cab9 /pulse | |
parent | fa9d943c69346b5bebda615c93bc350843c258b8 (diff) |
Save a byte of memory
Since we only need a single char, we should allocate only a single char,
instead of a string of two bytes.
Woah! We're saving memory, baby!
Diffstat (limited to 'pulse')
-rw-r--r-- | pulse/pulse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pulse/pulse.c b/pulse/pulse.c index f91d0e7..7bf0c7a 100644 --- a/pulse/pulse.c +++ b/pulse/pulse.c @@ -272,9 +272,10 @@ int pulse_connect(snd_pulse_t * p, const char *server) void pulse_poll_activate(snd_pulse_t * p) { + static const char x = 'x'; assert(p); - write(p->thread_fd, "a", 1); + write(p->thread_fd, &x, 1); } void pulse_poll_deactivate(snd_pulse_t * p) |