From f320cbcecdbadc53cd96b2f2a631659ef8bdb375 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 20 Nov 2012 15:04:28 -0600 Subject: [PATCH] Fix vxWorks implementation. --- src/libCom/osi/os/vxWorks/osdSpin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libCom/osi/os/vxWorks/osdSpin.c b/src/libCom/osi/os/vxWorks/osdSpin.c index 89019738c..9b545347d 100644 --- a/src/libCom/osi/os/vxWorks/osdSpin.c +++ b/src/libCom/osi/os/vxWorks/osdSpin.c @@ -16,12 +16,12 @@ * vxWorks (single CPU): LOCK INTERRUPT * * CAVEAT: - * This implementation will break on vxWorks SMP architectures. - * These architectures provide spinlocks, which will have to be used. + * This implementation will not compile on vxWorks SMP architectures. + * These architectures provide spinlocks, which must be used instead. * */ -#include +#include #include #include "epicsSpin.h" @@ -31,7 +31,7 @@ typedef struct epicsSpin { } epicsSpin; epicsSpinId epicsSpinCreate() { - return calloc(1, sizeof(*spin)); + return calloc(1, sizeof(epicsSpin)); } void epicsSpinDestroy(epicsSpinId spin) {