[ltrace-commits] 01/02: The return value of process_line is never used, so make it void
Petr Machata
pmachata-guest at moszumanska.debian.org
Sun May 10 16:59:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
pmachata-guest pushed a commit to branch master
in repository ltrace.
commit 9d41810320b7def13f1408dcc8bba7375e4633c7
Author: Роман Донченко <dpb at corrigendum.ru>
Date: Sun May 10 19:08:17 2015 +0300
The return value of process_line is never used, so make it void
---
read_config_file.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/read_config_file.c b/read_config_file.c
index 967bd00..336268a 100644
--- a/read_config_file.c
+++ b/read_config_file.c
@@ -1111,7 +1111,7 @@ parse_import(struct protolib_cache *cache, struct protolib *plib,
}
}
-static int
+static void
process_line(struct protolib_cache *cache, struct protolib *plib,
struct locus *loc, char *buf)
{
@@ -1122,16 +1122,16 @@ process_line(struct protolib_cache *cache, struct protolib *plib,
/* A comment or empty line. */
if (*str == ';' || *str == 0 || *str == '\n' || *str == '#')
- return 0;
+ return;
if (try_parse_kwd(&str, "import") >= 0) {
parse_import(cache, plib, loc, &str);
- return 0;
+ return;
}
if (try_parse_kwd(&str, "typedef") >= 0) {
parse_typedef(plib, loc, &str);
- return 0;
+ return;
}
struct prototype fun;
@@ -1152,7 +1152,7 @@ process_line(struct protolib_cache *cache, struct protolib *plib,
prototype_destroy(&fun);
free(proto_name);
- return -1;
+ return;
}
fun.own_return_info = own;
debug(4, " return_type = %d", fun.return_info->type);
@@ -1258,8 +1258,6 @@ process_line(struct protolib_cache *cache, struct protolib *plib,
strerror(errno));
goto err;
}
-
- return 0;
}
int
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git
More information about the ltrace-commits
mailing list