summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-11-27 22:04:53 -0500
committerDave Reisner <dreisner@archlinux.org>2014-11-27 22:05:02 -0500
commit41725289827500e8055014cd6126af877022dbaa (patch)
treeeac1d0d817839659d75302faa610cb2e3c5e688c
parentd4ab6ef08723c2c47802fd56222bf6105919ec3b (diff)
downloadexpac-41725289827500e8055014cd6126af877022dbaa.tar.xz
squelch compiler warnings
-rw-r--r--conf.c2
-rw-r--r--expac.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index aef4cbf..09889f6 100644
--- a/conf.c
+++ b/conf.c
@@ -36,7 +36,7 @@ static size_t strtrim(char *str)
return right - left;
}
-int is_section(const char *s, int n)
+static int is_section(const char *s, int n)
{
return s[0] == '[' && s[n-1] == ']';
}
diff --git a/expac.c b/expac.c
index d89e072..1039e34 100644
--- a/expac.c
+++ b/expac.c
@@ -839,7 +839,7 @@ static alpm_list_t *process_targets(int argc, char **argv)
int main(int argc, char *argv[])
{
alpm_list_t *results = NULL, *targets = NULL;
- expac_t *expac;
+ expac_t *expac = NULL;
int r;
r = parse_options(&argc, &argv);