changeset 18:6edc123bfc48

blah
author Simon Horman <horms@verge.net.au>
date Thu, 16 May 2002 11:44:16 +0900
parents ec24cbb588b3
children 168009f3e66f
files pbs/pbs.c pbs/pbs_option.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pbs/pbs.c	Thu May 16 10:50:23 2002 +0900
+++ b/pbs/pbs.c	Thu May 16 11:44:16 2002 +0900
@@ -490,8 +490,7 @@
 	int status = 0;
 
 	if(regexec(preg, line, PBS_NMATCH, pmatch, 0) != 0) {
-		printf("consume: no match\n");
-		return(-1);
+		return(0);
 	}
 	
 	if(pmatch[1].rm_so == -1 || pmatch[1].rm_eo == -1 ||
--- a/pbs/pbs_option.c	Thu May 16 10:50:23 2002 +0900
+++ b/pbs/pbs_option.c	Thu May 16 11:44:16 2002 +0900
@@ -90,7 +90,7 @@
 		{"log_file",      'L', POPT_ARG_STRING, NULL, 'L'},
 		{"mode",          'm', POPT_ARG_STRING, NULL, 'm'},
 		{"no_daemon",     'n', POPT_ARG_NONE,   NULL, 'n'},
-		{"perfix",        'p', POPT_ARG_STRING, NULL, 'p'},
+		{"prefix",        'p', POPT_ARG_STRING, NULL, 'p'},
 		{"quiet",         'q', POPT_ARG_NONE,   NULL, 'q'},
 		{"regex",         'r', POPT_ARG_STRING, NULL, 'r'},
 		{"timeout",       't', POPT_ARG_STRING, NULL, 't'},