summaryrefslogtreecommitdiffstats
path: root/daemon/augeas.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-30 14:11:20 +0000
committerRichard Jones <rjones@redhat.com>2009-12-07 11:13:12 +0000
commit983e7a23456f413394a254f3aa4dbee271a30c47 (patch)
tree791881ee042d03f4e8b9626c545f7253810d56d5 /daemon/augeas.c
parent4b4e0d0d07bd34f4368c6a213ff757d4ebf98411 (diff)
downloadlibguestfs-983e7a23456f413394a254f3aa4dbee271a30c47.tar.gz
libguestfs-983e7a23456f413394a254f3aa4dbee271a30c47.tar.xz
libguestfs-983e7a23456f413394a254f3aa4dbee271a30c47.zip
daemon error handling: Define a new function reply_with_perror_errno.
This allows you to save the errno from a previous call and pass it to reply_with_perror. For example, original code: r = some_system_call (); err = errno; do_cleanup (); errno = err; if (r == -1) { reply_with_perror ("failed"); return -1; } can in future be changed to: r = some_system_call (); err = errno; do_cleanup (); if (r == -1) { reply_with_perror_errno (err, "failed"); return -1; }
Diffstat (limited to 'daemon/augeas.c')
0 files changed, 0 insertions, 0 deletions