summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2004-05-17 03:07:44 +0000
committerNathan Scott <nathans@sgi.com>2004-05-17 03:07:44 +0000
commit789847746e55346a21d7634c2dbe346eeb78d8b2 (patch)
tree09897c58228ccba674b0f4b5e359ac0df03990f7 /examples
parent43aad926568a5ffd57d7c854386928d381fb41b0 (diff)
downloadacl-789847746e55346a21d7634c2dbe346eeb78d8b2.tar.gz
Merge ACL source examples update from Andreas.
Diffstat (limited to 'examples')
-rw-r--r--examples/copyperm.c4
-rw-r--r--examples/get-acl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/copyperm.c b/examples/copyperm.c
index d8376cf..93ea27d 100644
--- a/examples/copyperm.c
+++ b/examples/copyperm.c
@@ -10,14 +10,14 @@
#include <acl/libacl.h>
void
-error(struct error_context *ctx, int err, const char *fmt, ...)
+error(struct error_context *ctx, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (vfprintf(stderr, fmt, ap))
fprintf(stderr, ": ");
- fprintf(stderr, "%s\n", strerror(err));
+ fprintf(stderr, "%s\n", strerror(errno));
va_end(ap);
}
diff --git a/examples/get-acl.c b/examples/get-acl.c
index ab83a1a..bce3f48 100644
--- a/examples/get-acl.c
+++ b/examples/get-acl.c
@@ -68,11 +68,11 @@ int main(int argc, char *argv[])
printf("default:%s\n", token);
token = strtok(NULL, "\n");
}
+ acl_free(default_acl_text);
}
printf("\n");
acl_free(acl_text);
- acl_free(default_acl_text);
}
return ret;
}