From d826a8c1032391eebfda6b4f813b1819070a3bae Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 12 Jan 2006 03:56:54 +0000 Subject: [PATCH] Improve comment. --- src/file-handle-def.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/file-handle-def.c b/src/file-handle-def.c index 412c3e7aa8..f6495786b9 100644 --- a/src/file-handle-def.c +++ b/src/file-handle-def.c @@ -179,6 +179,8 @@ mode_name (const char *mode) TYPE is the sort of file, e.g. "system file". Only one given type of access is allowed on a given file handle at once. + If successful, a reference to TYPE is retained, so it should + probably be a string literal. MODE combines the read or write mode with the sharing mode. The first character is 'r' for read, 'w' for write. The @@ -190,10 +192,7 @@ mode_name (const char *mode) pointer on failure. For exclusive access modes the void * will always be a null pointer at return. In shared access modes the void * will necessarily be null only if no other - sharers are active. - - If successful, a reference to type is retained, so it should - probably be a string literal. */ + sharers are active. */ void ** fh_open (struct file_handle *h, const char *type, const char *mode) { -- 2.30.2