summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe <giuscri@gmail.com>2017-06-09 22:04:01 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2017-06-12 13:52:11 +0800
commitc9005f89e43f56c58e2269a896eb3b6c3bb2bc32 (patch)
treecb671f31ea93a0e2793c39ec7fb020a43825a843
parentf82be51763cd73a662d58fa820ef67622973c82f (diff)
downloadlibva-c9005f89e43f56c58e2269a896eb3b6c3bb2bc32.tar.gz
Fix small typos.
/etc/libav.conf was spelled incorrectly, some lines were bad indented because of mixed tabs and spaces. Signed-off-by: Giuseppe <giuscri@gmail.com> (cherry picked from commit 5f93344df466a81ba1388ae6802bb55d1fbad0b2)
-rw-r--r--va/va.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/va/va.c b/va/va.c
index 4a0b7e5..a573bd7 100644
--- a/va/va.c
+++ b/va/va.c
@@ -60,7 +60,7 @@
/*
* read a config "env" for libva.conf or from environment setting
- * liva.conf has higher priority
+ * libva.conf has higher priority
* return 0: the "env" is set, and the value is copied into env_value
* 1: the env is not set
*/
@@ -75,13 +75,13 @@ int va_parseConfig(char *env, char *env_value)
fp = fopen("/etc/libva.conf", "r");
while (fp && (fgets(oneline, 1024, fp) != NULL)) {
- if (strlen(oneline) == 1)
- continue;
+ if (strlen(oneline) == 1)
+ continue;
token = strtok_r(oneline, "=\n", &saveptr);
- value = strtok_r(NULL, "=\n", &saveptr);
+ value = strtok_r(NULL, "=\n", &saveptr);
- if (NULL == token || NULL == value)
- continue;
+ if (NULL == token || NULL == value)
+ continue;
if (strcmp(token, env) == 0) {
if (env_value) {