aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorJason Woodward2005-09-28 06:38:23 +0000
committerJason Woodward2005-09-28 06:38:23 +0000
commit933eeae5ef20cc52fa8de066ec2693542b7784a8 (patch)
tree0011264ea6016d2f263ef1a34fabbcb9931dcfd1 /src/common.h
parent17a63ea7ce0599fb00e31c6c90b6efb70172ca6f (diff)
downloadslapt-get-933eeae5ef20cc52fa8de066ec2693542b7784a8.tar.gz
changed slapt_init_regex() to return slapt_regex_t *
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common.h b/src/common.h
index b6fe83d..be788e2 100644
--- a/src/common.h
+++ b/src/common.h
@@ -16,12 +16,12 @@ typedef struct {
size_t nmatch;
regmatch_t pmatch[SLAPT_MAX_REGEX_PARTS];
int reg_return;
-} slapt_regex;
+} slapt_regex_t;
FILE *slapt_open_file(const char *file_name,const char *mode);
-int slapt_init_regex(slapt_regex *regex_t, const char *regex_string);
-void slapt_execute_regex(slapt_regex *regex_t,const char *string);
-void slapt_free_regex(slapt_regex *regex_t);
+slapt_regex_t *slapt_init_regex(const char *regex_string);
+void slapt_execute_regex(slapt_regex_t *regex_t,const char *string);
+void slapt_free_regex(slapt_regex_t *regex_t);
void slapt_create_dir_structure(const char *dir_name);
/* generate an md5sum of filehandle */
void slapt_gen_md5_sum_of_file(FILE *f,char *result_sum);