Code cleanup
This commit is contained in:
parent
8ea9e3c1e5
commit
888700905a
|
@ -364,7 +364,7 @@ static int _new_interface_foreach(char const * key, Hash * value,
|
||||||
{
|
{
|
||||||
String const * prefix = (appinterface->mode == ATM_SERVER)
|
String const * prefix = (appinterface->mode == ATM_SERVER)
|
||||||
? APPINTERFACE_CALL_PREFIX : APPINTERFACE_CALLBACK_PREFIX;
|
? APPINTERFACE_CALL_PREFIX : APPINTERFACE_CALLBACK_PREFIX;
|
||||||
int i;
|
unsigned int i;
|
||||||
char buf[8];
|
char buf[8];
|
||||||
int type = VT_NULL;
|
int type = VT_NULL;
|
||||||
char const * p;
|
char const * p;
|
||||||
|
@ -388,7 +388,7 @@ static int _new_interface_foreach(char const * key, Hash * value,
|
||||||
}
|
}
|
||||||
for(i = 0; i < APPSERVER_MAX_ARGUMENTS; i++)
|
for(i = 0; i < APPSERVER_MAX_ARGUMENTS; i++)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "arg%d", i + 1);
|
snprintf(buf, sizeof(buf), "arg%u", i + 1);
|
||||||
if((p = hash_get(value, buf)) == NULL)
|
if((p = hash_get(value, buf)) == NULL)
|
||||||
break;
|
break;
|
||||||
if(_new_interface_append_arg(appinterface, p) != 0)
|
if(_new_interface_append_arg(appinterface, p) != 0)
|
||||||
|
|
|
@ -117,7 +117,7 @@ static void _appbroker_constants(AppBroker * appbroker)
|
||||||
static int _appbroker_foreach_call(char const * key, Hash * value, void * data)
|
static int _appbroker_foreach_call(char const * key, Hash * value, void * data)
|
||||||
{
|
{
|
||||||
AppBroker * appbroker = data;
|
AppBroker * appbroker = data;
|
||||||
int i;
|
unsigned int i;
|
||||||
char buf[8];
|
char buf[8];
|
||||||
char const * p;
|
char const * p;
|
||||||
const char sep[] = ", ";
|
const char sep[] = ", ";
|
||||||
|
@ -133,7 +133,7 @@ static int _appbroker_foreach_call(char const * key, Hash * value, void * data)
|
||||||
key, "(App * app, AppServerClient * client");
|
key, "(App * app, AppServerClient * client");
|
||||||
for(i = 0; i < APPSERVER_MAX_ARGUMENTS; i++)
|
for(i = 0; i < APPSERVER_MAX_ARGUMENTS; i++)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "arg%d", i + 1);
|
snprintf(buf, sizeof(buf), "arg%u", i + 1);
|
||||||
if((p = hash_get(value, buf)) == NULL)
|
if((p = hash_get(value, buf)) == NULL)
|
||||||
break;
|
break;
|
||||||
if(_appbroker_foreach_call_arg(appbroker, sep, p) != 0)
|
if(_appbroker_foreach_call_arg(appbroker, sep, p) != 0)
|
||||||
|
@ -168,7 +168,7 @@ static int _appbroker_foreach_callback(char const * key, Hash * value,
|
||||||
{
|
{
|
||||||
/* XXX some code duplication with _appbroker_foreach_call() */
|
/* XXX some code duplication with _appbroker_foreach_call() */
|
||||||
AppBroker * appbroker = data;
|
AppBroker * appbroker = data;
|
||||||
int i;
|
unsigned int i;
|
||||||
char buf[8];
|
char buf[8];
|
||||||
char const * p;
|
char const * p;
|
||||||
const char sep[] = ", ";
|
const char sep[] = ", ";
|
||||||
|
@ -184,7 +184,7 @@ static int _appbroker_foreach_callback(char const * key, Hash * value,
|
||||||
key, "(AppClient * client");
|
key, "(AppClient * client");
|
||||||
for(i = 0; i < APPSERVER_MAX_ARGUMENTS; i++)
|
for(i = 0; i < APPSERVER_MAX_ARGUMENTS; i++)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "arg%d", i + 1);
|
snprintf(buf, sizeof(buf), "arg%u", i + 1);
|
||||||
if((p = hash_get(value, buf)) == NULL)
|
if((p = hash_get(value, buf)) == NULL)
|
||||||
break;
|
break;
|
||||||
if(_appbroker_foreach_call_arg(appbroker, sep, p) != 0)
|
if(_appbroker_foreach_call_arg(appbroker, sep, p) != 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user