summaryrefslogtreecommitdiffstats
path: root/src/cowtest/main.c
diff options
context:
space:
mode:
authorMichael Scherle2022-06-30 12:59:28 +0200
committerMichael Scherle2022-06-30 12:59:28 +0200
commit331d71dd99e5918228e2afdf6833aa5368e39264 (patch)
treed58d3df9e6e3de85babc5a324a7eb941c20f94ae /src/cowtest/main.c
parentcreated sperate paramter for stats (diff)
downloaddnbd3-331d71dd99e5918228e2afdf6833aa5368e39264.tar.gz
dnbd3-331d71dd99e5918228e2afdf6833aa5368e39264.tar.xz
dnbd3-331d71dd99e5918228e2afdf6833aa5368e39264.zip
removed timeUploaded and use cmpxchg
Diffstat (limited to 'src/cowtest/main.c')
-rw-r--r--src/cowtest/main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/cowtest/main.c b/src/cowtest/main.c
index 7c27f0f..06686f0 100644
--- a/src/cowtest/main.c
+++ b/src/cowtest/main.c
@@ -610,16 +610,18 @@ int main( int argc, char *argv[] )
printUsage();
return 0;
}
- while ( 1 )
+ int opt;
+ while ((opt = getopt(argc, argv, "d:c:t:v:")) != -1)
{
- int result = getopt( argc, argv, "d:c:t:v:" );
- if ( result == -1 ) break; /* end of list */
+
+ printf( "res: %i", opt );
char * pEnd;
- switch (result)
+
+ switch ( opt )
{
case 'd':
- delay =(int) strtol (optarg, &pEnd, 10);
+ delay =(int) strtol ( optarg, &pEnd, 10 );
printf("Delay set to %i\n", delay);
break;
case 'c':