diff options
author | Petr Machata <pmachata@redhat.com> | 2012-11-09 16:42:36 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-11-09 16:42:36 +0100 |
commit | 03be6eb89a1d05cf39e9278e0b0813ead3787519 (patch) | |
tree | 06373e6bb8be02704a5829a237317912b64f798c /glob.c | |
parent | 28cd84db222ce68ad13c6d37dfed5f3bb0a44784 (diff) | |
download | ltrace-03be6eb89a1d05cf39e9278e0b0813ead3787519.tar.gz |
In globcomp, use REG_NOERROR instead of literal 0
Hopefully this will make it clearer that the protocol is different than
everywhere else in ltrace, where <0 is error condition.
Diffstat (limited to 'glob.c')
-rw-r--r-- | glob.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -179,7 +179,7 @@ glob_to_regex(const char *glob, char **retp) goto fail; } *retp = buf; - return 0; + return REG_NOERROR; } int @@ -187,7 +187,7 @@ globcomp(regex_t *preg, const char *glob, int cflags) { char *regex; int status = glob_to_regex(glob, ®ex); - if (status != 0) + if (status != REG_NOERROR) return status; status = regcomp(preg, regex, cflags); free(regex); |