summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-11 10:11:17 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:32 -0500
commita9788eed709a6060b7e99b99832197a3c2e93496 (patch)
tree21b38fb32ddc9472ccb895f57dc45eddcb23c55f
parenteb4c04e1978f8f217e24d46a3baeecf54ac23096 (diff)
downloadperk-a9788eed709a6060b7e99b99832197a3c2e93496.tar.bz2
perk-a9788eed709a6060b7e99b99832197a3c2e93496.tar.xz
pe_get_unit_ctx: fix function signature (const driver context).
-rw-r--r--include/perk/perk.h2
-rw-r--r--src/driver/pe_unit_ctx.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index 9e4b035..451b37e 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -153,7 +153,7 @@ struct pe_unit_ctx {
perk_api int pe_get_driver_ctx (const char ** argv, const char ** envp, uint32_t flags, struct pe_driver_ctx **);
perk_api void pe_free_driver_ctx (struct pe_driver_ctx *);
-perk_api int pe_get_unit_ctx (struct pe_driver_ctx *, const char * path, struct pe_unit_ctx **);
+perk_api int pe_get_unit_ctx (const struct pe_driver_ctx *, const char * path, struct pe_unit_ctx **);
perk_api void pe_free_unit_ctx (struct pe_unit_ctx *);
/* utility api */
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c
index 77b74bc..e542681 100644
--- a/src/driver/pe_unit_ctx.c
+++ b/src/driver/pe_unit_ctx.c
@@ -19,9 +19,9 @@ static int pe_free_unit_ctx_impl(struct pe_unit_ctx_impl * ctx, int status)
}
int pe_get_unit_ctx(
- struct pe_driver_ctx * dctx,
- const char * path,
- struct pe_unit_ctx ** pctx)
+ const struct pe_driver_ctx * dctx,
+ const char * path,
+ struct pe_unit_ctx ** pctx)
{
struct pe_unit_ctx_impl * ctx;
int prot;