aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJason Woodward2006-08-21 05:05:41 +0000
committerJason Woodward2006-08-21 05:05:41 +0000
commit06f6c2dcc8529c3e495b3a35e40f28ea63176563 (patch)
tree1c839cc017aae4622195ec53046397a20c8adfbf /src/main.c
parenta4fa2de0a55054adee2f946470d0ac2c6e18c11b (diff)
downloadslapt-get-06f6c2dcc8529c3e495b3a35e40f28ea63176563.tar.gz
small code formatting updates
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 4eaf14d..f688f9c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,14 +20,15 @@
static void usage(void);
static void version_info(void);
+extern char *optarg;
+extern int optind, opterr, optopt;
+
int main( int argc, char *argv[] )
{
slapt_rc_config *global_config; /* our config struct */
slapt_pkg_action_args_t *paa;
- /* getopt needs these */
+
int c = 0;
- extern char *optarg;
- extern int optind, opterr, optopt;
enum slapt_action do_action = 0;
int option_index = 0;
static struct option long_options[] = {