summaryrefslogtreecommitdiffstats
path: root/views/transform.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-02-23 08:12:30 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-02-23 08:12:30 +0100
commitdbef1e0271da298a0cbdc951dda84b7f150bbad0 (patch)
tree0e10f8953f5b61193c8393dd05b257c0fd9a44a1 /views/transform.c
parenta962c90543955bac98308c1b0d909048070d900a (diff)
downloadpcitool-dbef1e0271da298a0cbdc951dda84b7f150bbad0.tar.gz
pcitool-dbef1e0271da298a0cbdc951dda84b7f150bbad0.tar.bz2
pcitool-dbef1e0271da298a0cbdc951dda84b7f150bbad0.tar.xz
pcitool-dbef1e0271da298a0cbdc951dda84b7f150bbad0.zip
Stabilize merged code
Diffstat (limited to 'views/transform.c')
-rw-r--r--views/transform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/transform.c b/views/transform.c
index f2d4b4a..25f30d1 100644
--- a/views/transform.c
+++ b/views/transform.c
@@ -10,13 +10,13 @@
#include "transform.h"
#include "py.h"
#include "error.h"
+#include "pci.h"
static pcilib_view_context_t * pcilib_transform_view_init(pcilib_t *ctx, pcilib_view_t view) {
int err;
pcilib_view_context_t *view_ctx;
- const pcilib_model_description_t *model_info = pcilib_get_model_description(ctx);
- pcilib_transform_view_description_t *v = (pcilib_transform_view_description_t*)(model_info->views[view]);
+ pcilib_transform_view_description_t *v = (pcilib_transform_view_description_t*)(ctx->views[view]);
if(v->script) {
pcilib_access_mode_t mode = 0;