summaryrefslogtreecommitdiff
path: root/popt.h
diff options
context:
space:
mode:
Diffstat (limited to 'popt.h')
-rw-r--r--popt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/popt.h b/popt.h
index 56bd2ba..bd991a2 100644
--- a/popt.h
+++ b/popt.h
@@ -397,13 +397,13 @@ int poptSaneFile(const char * fn)
/**
* Read a file into a buffer.
* @param fn file name
- * @retval *bp buffer (malloc'd)
- * @retval *nbp no. of bytes in buffer (including final NUL)
+ * @retval *bp buffer (malloc'd) (or NULL)
+ * @retval *nbp no. of bytes in buffer (including final NUL) (or NULL)
* @param flags 1 to trim escaped newlines
* return 0 on success
*/
-int poptReadFile(const char * fn, /*@out@*/ char ** bp, /*@out@*/ size_t * nbp,
- int flags)
+int poptReadFile(const char * fn, /*@null@*/ /*@out@*/ char ** bp,
+ /*@null@*/ /*@out@*/ size_t * nbp, int flags)
/*@globals errno, fileSystem, internalState @*/
/*@modifies *bp, *nbp, errno, fileSystem, internalState @*/;
#define POPT_READFILE_TRIMNEWLINES 1