From 7d73ba76d9121f9b81b1cafb60f49015496a322a Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 8 Jul 2010 09:01:59 +0000 Subject: [PATCH] Fixed. Sergey. --- disks/disks.c | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/disks/disks.c b/disks/disks.c index edf9d20..7d97c4a 100644 --- a/disks/disks.c +++ b/disks/disks.c @@ -24,11 +24,11 @@ const char space[] = " "; char diskNum[] = "diskNum"; -int data_disks[22]; /* Available disk space */ +int data_disks[22]; /* Available disk space */ char shmemBase[] = "daq_evtbuild"; /* Base name for shared memory segments */ -int shmem_nums[16]; /* Numbers for found shared memory segments */ -int nrOfShmSegms; /* Total number of found shared memory segments */ +int shmem_nums[16]; /* Numbers for found shared memory segments */ +int nrOfShmSegms; /* Total number of found shared memory segments */ typedef struct TheArgsS { int sleepTime; /*seconds*/ @@ -37,8 +37,9 @@ typedef struct TheArgsS { static void usage(const char *progName) { - printf( "Usage: %s [-h] : Print help.", progName); - printf( " [-s