aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJason Woodward2005-05-18 02:19:28 +0000
committerJason Woodward2005-05-18 02:19:28 +0000
commit449972dc410b4c9b37f7a890d62209b55367e142 (patch)
tree9c80c33c55e5fae2ea4f945dea4925ab8b4f525f /src/main.c
parent05155ea30c6d2e8bdd70fde4f51e49473172e9ef (diff)
downloadslapt-get-449972dc410b4c9b37f7a890d62209b55367e142.tar.gz
code formatting updates
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 22a8773..56f3934 100644
--- a/src/main.c
+++ b/src/main.c
@@ -72,11 +72,11 @@ int main( int argc, char *argv[] )
textdomain(PROGRAM_NAME);
#endif
- if( argc < 2 ) usage(), exit(1);
+ if ( argc < 2 ) usage(), exit(1);
/* load up the configuration file */
global_config = read_rc_config(RC_LOCATION);
- if( global_config == NULL ) {
+ if ( global_config == NULL ) {
exit(1);
}
curl_global_init(CURL_GLOBAL_ALL);
@@ -156,7 +156,7 @@ int main( int argc, char *argv[] )
{
rc_config *tmp_gc = global_config;
global_config = read_rc_config(optarg);
- if( global_config == NULL ) {
+ if ( global_config == NULL ) {
free_rc_config(tmp_gc);
curl_global_cleanup();
exit(1);
@@ -199,7 +199,7 @@ int main( int argc, char *argv[] )
case REMOVE:
case SHOW:
case SEARCH:
- if( optind >= argc )
+ if ( optind >= argc )
do_action = 0;
break;
default:
@@ -208,7 +208,7 @@ int main( int argc, char *argv[] )
break;
}
- if( do_action == USAGE ) {
+ if ( do_action == USAGE ) {
usage();
free_rc_config(global_config);
curl_global_cleanup();
@@ -221,7 +221,7 @@ int main( int argc, char *argv[] )
switch(do_action) {
case UPDATE:
- if( update_pkg_cache(global_config) == 1 ) {
+ if ( update_pkg_cache(global_config) == 1 ) {
free_rc_config(global_config);
curl_global_cleanup();
exit(1);