From ebc5ae5afc91a70731dfab508fac7ffe1b825d1e Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sat, 7 Dec 2019 20:59:18 -0700 Subject: [PATCH] compile errors fixed --- src/ep_backlight.c | 1 + src/ep_upiwin.c | 18 +++++++++--------- src/main.c | 1 - 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ep_backlight.c b/src/ep_backlight.c index 04ccec9..af4327b 100644 --- a/src/ep_backlight.c +++ b/src/ep_backlight.c @@ -1,5 +1,6 @@ #define PY_SSIZE_T_CLEAN #include +#include "scode.h" #include "gpio.h" #include "ep_upiwin.h" #include "ep_init.h" diff --git a/src/ep_upiwin.c b/src/ep_upiwin.c index 0434d3c..c4b42d0 100644 --- a/src/ep_upiwin.c +++ b/src/ep_upiwin.c @@ -19,15 +19,15 @@ static PyMethodDef UPIWINMethods[] = { }; static PyModuleDef DefUPIWIN = { - PyModuleDef_HEAD_INIT, /* standard garbage */ - Mod_UPIWIN, /* module name */ - NULL, /* no doc string */ - sizeof(UPIWIN_STATE), /* per-module memory */ - UPIWINMethods, /* method defs */ - NULL, /* no slots for multi-phase init */ - NULL, /* no traversal proc */ - NULL, /* no clear function */ - NULL /* no free function */ + PyModuleDef_HEAD_INIT, /* standard garbage */ + "upiwin", /* module name */ + NULL, /* no doc string */ + sizeof(UPIWIN_STATE), /* per-module memory */ + UPIWINMethods, /* method defs */ + NULL, /* no slots for multi-phase init */ + NULL, /* no traversal proc */ + NULL, /* no clear function */ + NULL /* no free function */ }; PyObject *Epython_init_upiwin_module(void) diff --git a/src/main.c b/src/main.c index d683864..4c10738 100644 --- a/src/main.c +++ b/src/main.c @@ -34,7 +34,6 @@ int main(int argc, char *argv[]) HRESULT hr; int running = 1; MSG msg; - char *tmp; /* initialization sequence */ Time_init();