Skip to content
Snippets Groups Projects
Commit 236b6d20 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Rename variables to clarify purpose.

parent 2a7a80fa
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
void reshUnpackResources(char * unpackBuffer, int unpackBufferSize,
void *context)
{
int token1, token2, originNamespace;
int updateType, resH, originNamespace;
int unpackBufferPos = 0;
int numAssociations = 0, sizeAssociations = 16;
struct streamAssoc *associations
......@@ -39,10 +39,10 @@ void reshUnpackResources(char * unpackBuffer, int unpackBufferSize,
while ( unpackBufferPos < unpackBufferSize )
{
serializeUnpack(unpackBuffer, unpackBufferSize, &unpackBufferPos,
&token1, 1, DATATYPE_INT, context);
if (token1 == END)
&updateType, 1, DATATYPE_INT, context);
if (updateType == END)
break;
switch (token1)
switch (updateType)
{
case GRID:
gridUnpack(unpackBuffer, unpackBufferSize, &unpackBufferPos,
......@@ -80,8 +80,8 @@ void reshUnpackResources(char * unpackBuffer, int unpackBufferSize,
break;
case RESH_DELETE:
serializeUnpack(unpackBuffer, unpackBufferSize, &unpackBufferPos,
&token2, 1, DATATYPE_INT, context);
reshDestroy(namespaceAdaptKey(token2, originNamespace));
&resH, 1, DATATYPE_INT, context);
reshDestroy(namespaceAdaptKey(resH, originNamespace));
break;
default:
xabort ( "TOKEN MAPS NO VALID DATATYPE" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment