[Initng-svn] r2938 - initng/plugins/ngcs
svn at initng.thinktux.net
svn at initng.thinktux.net
Sat Feb 4 14:00:23 CET 2006
Author: makomk
Date: Sat Feb 4 14:00:23 2006
New Revision: 2938
Modified:
initng/plugins/ngcs/ngcs_common.c
Log:
Bugfix in ngcs message code
Modified: initng/plugins/ngcs/ngcs_common.c
==============================================================================
--- initng/plugins/ngcs/ngcs_common.c (original)
+++ initng/plugins/ngcs/ngcs_common.c Sat Feb 4 14:00:23 2006
@@ -87,6 +87,12 @@
if (ngcs_recvall(sock, &(*data)[n].d.i, sizeof(int)))
return 1;
break;
+ case NGCS_TYPE_LONG:
+ if ((*data)[n].size != sizeof(long))
+ return 1;
+ if (ngcs_recvall(sock, &(*data)[n].d.l, sizeof(long)))
+ return 1;
+ break;
case NGCS_TYPE_STRING:
(*data)[n].d.s = malloc((*data)[n].size + 1);
if (!(*data)[n].d.s)
@@ -118,6 +124,8 @@
switch (data[i].type)
{
case NGCS_TYPE_INT:
+ case NGCS_TYPE_GROUP:
+ case NGCS_TYPE_LONG:
break;
case NGCS_TYPE_STRING:
if (data[i].d.s)
More information about the Initng-svn
mailing list