diff options
author | Mukund Sivaraman <muks@banu.com> | 2010-06-02 10:11:10 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2010-06-02 10:11:17 +0530 |
commit | 56257d3da3a37324e2e7f706a4c07c1663d23b0a (patch) | |
tree | f6a3f60db69dc32d95eedc8577c875ae3ed5c5a7 /src | |
parent | df9e6d3163b7eea9de18e22052bd4f0a6e1c3785 (diff) | |
download | tinyproxy-56257d3da3a37324e2e7f706a4c07c1663d23b0a.tar.gz tinyproxy-56257d3da3a37324e2e7f706a4c07c1663d23b0a.zip |
Remove excessive code
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -374,8 +374,6 @@ done: int main (int argc, char **argv) { - int ret; - /* Only allow u+rw bits. This may be required for some versions * of glibc so that mkstemp() doesn't make us vulnerable. */ @@ -383,23 +381,20 @@ main (int argc, char **argv) log_message (LOG_INFO, "Initializing " PACKAGE " ..."); - ret = config_compile_regex(); - if (ret != 0) { + if (config_compile_regex()) { exit (EX_SOFTWARE); } initialize_config_defaults (&config_defaults); process_cmdline (argc, argv, &config_defaults); - ret = reload_config_file (config_defaults.config_file, - &config, - &config_defaults); - if (ret != 0) { + if (reload_config_file (config_defaults.config_file, + &config, + &config_defaults)) { exit (EX_SOFTWARE); } - ret = setup_logging (); - if (ret != 0) { + if (setup_logging ()) { exit (EX_SOFTWARE); } |