From 77dd78e3b478cc98498dd4b552a18969293c2941 Mon Sep 17 00:00:00 2001 From: Stefan Richter Date: Tue, 31 Jul 2012 20:12:14 +0200 Subject: [PATCH] Documentation improvement: return code of raw1394_read_cycle_timer{,_and_clock} "the error code of the ioctl" is always -1. And ioctl() sets errno for us. So let's say this in a way which is less likely to be misunderstood. Signed-off-by: Stefan Richter --- src/raw1394.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raw1394.h b/src/raw1394.h index 8787313..7339311 100644 --- a/src/raw1394.h +++ b/src/raw1394.h @@ -369,7 +369,7 @@ int raw1394_read_cycle_timer(raw1394handle_t handle, * CLOCK_REALTIME is subject to resets; CLOCK_MONOTONIC is subject to gradual * adjustments; CLOCK_MONOTONIC_RAW is the bare hardware clock. * - * Returns: the error code of the ioctl, or 0 if successful. + * Returns: 0 on success or -1 on failure (sets errno) * * History: New function in libraw1394 v2.1.0. **/