[systemd-devel] [PATCH 1/2] RFC: util: Avoid memory allocations for formatting paths
Ian Pilcher
arequipeno at gmail.com
Tue Apr 2 13:54:59 PDT 2013
On 04/02/2013 03:35 PM, Holger Freyther wrote:
> +#define format_procfs_path(buffer, path, pid) \
> + snprintf(buffer, sizeof(buffer) - 1, "/proc/%lu/%s", (unsigned long) pid, path); \
> + char_array_0(buffer);
http://gcc.gnu.org/onlinedocs/cpp/Swallowing-the-Semicolon.html
--
========================================================================
Ian Pilcher arequipeno at gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================
More information about the systemd-devel
mailing list