Re: [libvirt] [PATCH 3/4] virpidfile: replace fopen/fwrite/fscanf with more portable version

2012-02-10 Thread Eric Blake
On 02/01/2012 05:28 PM, Marc-André Lureau wrote: Replace calls to fwrite() and fscanf() with more portable-friendly version, such as snprintf() and virStrToLong(). I'm tweaking this to mention why snprintf is more portable - because we're using gnulib for snprintf but not for fprintf. ---

[libvirt] [PATCH 3/4] virpidfile: replace fopen/fwrite/fscanf with more portable version

2012-02-01 Thread Marc-André Lureau
Replace calls to fwrite() and fscanf() with more portable-friendly version, such as snprintf() and virStrToLong(). --- src/util/virpidfile.c | 42 +- 1 files changed, 25 insertions(+), 17 deletions(-) diff --git a/src/util/virpidfile.c