[PVFS2-CVS]
commit by pw in pvfs2/src/apps/admin: pvfs2-event-mon-example.c
CVS commit program
cvs at parl.clemson.edu
Thu Mar 18 16:30:50 EST 2004
Update of /projects/cvsroot/pvfs2/src/apps/admin
In directory parlweb:/tmp/cvs-serv10400/src/apps/admin
Modified Files:
pvfs2-event-mon-example.c
Log Message:
use getopt
Index: pvfs2-event-mon-example.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/admin/pvfs2-event-mon-example.c,v
diff -u -p -u -r1.11 -r1.12
--- pvfs2-event-mon-example.c 18 Mar 2004 18:56:55 -0000 1.11
+++ pvfs2-event-mon-example.c 18 Mar 2004 21:30:50 -0000 1.12
@@ -12,6 +12,7 @@
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>
+#include <getopt.h>
#include "pvfs2.h"
#include "pvfs2-mgmt.h"
@@ -168,9 +169,6 @@ int main(int argc, char **argv)
*/
static struct options* parse_args(int argc, char* argv[])
{
- /* getopt stuff */
- extern char* optarg;
- extern int optind, opterr, optopt;
char flags[] = "vm:";
int one_opt = 0;
int len = 0;
More information about the PVFS2-CVS
mailing list