--- libaitsess/inc/aitsess.h 2008/09/30 20:19:48 1.1.1.1.2.1 +++ libaitsess/inc/aitsess.h 2008/10/13 16:26:07 1.1.1.1.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsess.h,v 1.1.1.1.2.1 2008/09/30 20:19:48 misho Exp $ +* $Id: aitsess.h,v 1.1.1.1.2.2 2008/10/13 16:26:07 misho Exp $ * *************************************************************************/ #ifndef __AITSESS_H @@ -179,7 +179,7 @@ inline int ipc_decSemaphore(tagSess * __restrict s); // #define DESTROY_SESSION(fname, s) do { \ - switch ((s)->type) { \ + switch (((*s))->type) { \ case SHARED_IPC: \ ipc_destroySession((fname), (s)); \ break; \