X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Flinks%2Ffbus-phonet.c;fp=common%2Flinks%2Ffbus-phonet.c;h=d2f0b8b9ce34245249f95bd39839fcd3e9c0fa3a;hp=328fd09f0af0215497c83007c295fa2e22c1ffcf;hb=49dd905279a8e62936e3713510ab0fd738e20ecb;hpb=2f2703c9133032c12671ca5c77ae626b8fb178d4 diff --git a/common/links/fbus-phonet.c b/common/links/fbus-phonet.c index 328fd09..d2f0b8b 100644 --- a/common/links/fbus-phonet.c +++ b/common/links/fbus-phonet.c @@ -17,8 +17,8 @@ The various routines are called PHONET_(whatever). $Log$ - Revision 1.1.1.1 2001/11/25 21:59:09 short - :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001 + Revision 1.1.1.2 2002/04/03 00:08:07 short + Found in "gnokii-working" directory, some November-patches version Revision 1.8 2001/08/20 23:27:37 pkot Add hardware shakehand to the link layer (Manfred Jonsson) @@ -80,9 +80,9 @@ /* Some globals */ -GSM_Link *glink; -GSM_Statemachine *statemachine; -PHONET_IncomingMessage imessage; +static GSM_Link *glink; +static GSM_Statemachine *PHONET_statemachine; +static PHONET_IncomingMessage imessage; /*--------------------------------------------*/ @@ -186,7 +186,7 @@ void PHONET_RX_StateMachine(unsigned char rx_byte) { /* Is that it? */ if (i->BufferCount == i->MessageLength) { - SM_IncomingFunction(statemachine, i->MessageType, i->MessageBuffer, i->MessageLength); + SM_IncomingFunction(PHONET_statemachine, i->MessageType, i->MessageBuffer, i->MessageLength); i->state = FBUS_RX_Sync; } break; @@ -288,7 +288,7 @@ GSM_Error PHONET_Initialise(GSM_Link *newlink, GSM_Statemachine *state) /* 'Copy in' the global structures */ glink = newlink; - statemachine = state; + PHONET_statemachine = state; /* Fill in the link functions */ glink->Loop = &PHONET_Loop;