--- libaitsess/inc/aitsess.h 2008/08/28 13:18:30 1.1.1.1 +++ libaitsess/inc/aitsess.h 2008/10/13 16:26:07 1.1.1.1.2.2 @@ -1,3 +1,11 @@ +/************************************************************************* +* (C) 2008 AITNET ltd - Sofia/Bulgaria - +* by Michael Pounov +* +* $Author: misho $ +* $Id: aitsess.h,v 1.1.1.1.2.2 2008/10/13 16:26:07 misho Exp $ +* +*************************************************************************/ #ifndef __AITSESS_H #define __AITSESS_H @@ -171,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; \