]> code.delx.au - pulseaudio/commitdiff
core-util: Improve get_path() documentation
authorTanu Kaskinen <tanuk@iki.fi>
Thu, 13 Dec 2012 06:26:05 +0000 (08:26 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:48 +0000 (12:31 +0200)
src/pulsecore/core-util.c

index 2685c7860758e76ff5f33db83c44cb86c0cf40ae..1f4fca1e72f542436873a7cb14acddf94f30d58c 100644 (file)
@@ -2138,9 +2138,9 @@ char *pa_make_path_absolute(const char *p) {
     return r;
 }
 
     return r;
 }
 
-/* if fn is null return the PulseAudio run time path in s (~/.pulse)
- * if fn is non-null and starts with / return fn
- * otherwise append fn to the run time path and return it */
+/* If fn is NULL, return the PulseAudio runtime or state dir (depending on the
+ * rt parameter). If fn is non-NULL and starts with /, return fn. Otherwise,
+ * append fn to the runtime/state dir and return it. */
 static char *get_path(const char *fn, pa_bool_t prependmid, pa_bool_t rt) {
     char *rtp;
 
 static char *get_path(const char *fn, pa_bool_t prependmid, pa_bool_t rt) {
     char *rtp;