aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-05 17:39:39 +0000
committerJason Woodward2005-01-05 17:39:39 +0000
commit4795f9fec2498b6c164fb0c7bbf6b4b56eb2e7f6 (patch)
tree95bc005c649b9a01517e28c856c0a1779e634e58 /src
parent00ed4fbac48c327e7a066e8027c14f3b3c417f75 (diff)
downloadslapt-get-4795f9fec2498b6c164fb0c7bbf6b4b56eb2e7f6.tar.gz
removed useless comment and changed getopt_long_only while test from EOF to -1
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 3d0d69f..7532e14 100644
--- a/src/main.c
+++ b/src/main.c
@@ -61,11 +61,6 @@ int main( int argc, char *argv[] ){
{0, 0, 0, 0},
};
- /*
- this causes problems with slackware-current...
- segfaults in getopt_long_only() when invalid
- option is used
- */
setbuf(stdout,NULL);
#ifdef ENABLE_NLS
@@ -83,7 +78,7 @@ int main( int argc, char *argv[] ){
}
curl_global_init(CURL_GLOBAL_ALL);
- while( ( c = getopt_long_only(argc,argv,"",long_options,&option_index ) ) != EOF ){
+ while( ( c = getopt_long_only(argc,argv,"",long_options,&option_index ) ) != -1 ){
switch(c){
case UPDATE_OPT: /* update */
do_action = UPDATE;