From b451a4f5df662c4b7094a687f4e410f3e007f3bf Mon Sep 17 00:00:00 2001 From: Leandre Gohy Date: Fri, 27 Feb 2015 12:21:22 +0100 Subject: [PATCH] fix patch & typos in wiringPiISR --- patchs/devLib_Makefile.patch | 2 +- src/wiringPiISR.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patchs/devLib_Makefile.patch b/patchs/devLib_Makefile.patch index 8ae4125..cb9fc41 100644 --- a/patchs/devLib_Makefile.patch +++ b/patchs/devLib_Makefile.patch @@ -14,6 +14,6 @@ CC = gcc -INCLUDE = -I. +INCLUDE = -I. -I$(PWD)/../wiringPi + DEFS = -D_GNU_SOURCE CFLAGS = $(DEBUG) -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC - LIBS = diff --git a/src/wiringPiISR.cc b/src/wiringPiISR.cc index 89ba204..1f6e1cf 100644 --- a/src/wiringPiISR.cc +++ b/src/wiringPiISR.cc @@ -56,7 +56,7 @@ static void processInterrupt(uv_work_t* req, int status) { } static void UV_NOP(uv_work_t*) {} -static void UV_ASYNC_NOP(uv_async_t* handler, int status) {} +static void UV_ASYNC_NOP(uv_async_t* handler) {} void processNativeInterrupt(int pin) { unsigned int now = ::micros(); @@ -188,7 +188,7 @@ IMPLEMENT(wiringPiISRCancel) { int pin = GET_ARGUMENT_AS_INT32(0); ::wiringPiISRCancel(pin); - uv_close((uv_handle_t*)&asyncHandlers[pin], null); + uv_close((uv_handle_t*)&asyncHandlers[pin], NULL); SCOPE_CLOSE(UNDEFINED()); }