summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2015-02-17 21:15:23 +0200
committerTakashi Iwai <tiwai@suse.de>2015-02-17 22:16:00 +0100
commit567c831e6968fcd833eec8458da366dad183fd41 (patch)
tree9876cf5364662fe475f80ff418a2ddbccac4c0d3 /include
parenta102e66440c7579e9a82ee869b7dc7a53393e3df (diff)
ucm: fix some variable constness issues
I submitted earlier a patch that made the value parameter of snd_use_case_get() non-const, but as that changed the public API, the patch couldn't be accepted. This is the same patch, modifying the internal code so that there are fewer issues with constness, but the public API is left alone (a comment was added to the function documentation, though, so that hopefully nobody else will try to fix the same unfixable problem). Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/use-case.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/use-case.h b/include/use-case.h
index f30168f8..697377a1 100644
--- a/include/use-case.h
+++ b/include/use-case.h
@@ -224,8 +224,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
* \param value Value pointer
* \return Zero if success, otherwise a negative error code
*
- * Note: String is dynamically allocated, use free() to
- * deallocate this string.
+ * Note: The returned string is dynamically allocated, use free() to
+ * deallocate this string. (Yes, the value parameter shouldn't be marked as
+ * "const", but it's too late to fix it, sorry about that.)
*
* Known identifiers:
* NULL - return current card