run_uicb() is static

This commit is contained in:
Julien Danjou 2007-12-14 16:07:34 +01:00
parent 213c839597
commit 15cfbb9ee7
2 changed files with 18 additions and 21 deletions

38
uicb.c
View File

@ -76,26 +76,7 @@ const NameFuncLink UicbList[] = {
{NULL, NULL}
};
int
parse_control(char *cmd, awesome_config *awesomeconf)
{
char *p, *curcmd = cmd;
if(!a_strlen(cmd))
return -1;
while((p = strchr(curcmd, '\n')))
{
*p = '\0';
run_uicb(curcmd, awesomeconf);
curcmd = p + 1;
}
return 0;
}
int
static int
run_uicb(char *cmd, awesome_config *awesomeconf)
{
char *p;
@ -135,5 +116,22 @@ run_uicb(char *cmd, awesome_config *awesomeconf)
return 0;
}
int
parse_control(char *cmd, awesome_config *awesomeconf)
{
char *p, *curcmd = cmd;
if(!a_strlen(cmd))
return -1;
while((p = strchr(curcmd, '\n')))
{
*p = '\0';
run_uicb(curcmd, awesomeconf);
curcmd = p + 1;
}
return 0;
}
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99

1
uicb.h
View File

@ -25,7 +25,6 @@
#include "config.h"
int parse_control(char *, awesome_config *);
int run_uicb(char *, awesome_config *);
#endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99