Commit 333490cb authored by Matteo Quintiliani's avatar Matteo Quintiliani

nmxp_chan_cpy_sta_chan() has been used


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@175 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent d998ed80
......@@ -58,19 +58,15 @@ int nmxp_chan_match(const char *station_dot_channel, char *pattern)
int ret = 0;
int i, l;
char sta_pattern[20];
char *cha_pattern;
char cha_pattern[20];
char sta_sdc[20];
char *cha_sdc;
/* validate pattern channel */
strcpy(sta_pattern, pattern);
if( (cha_pattern = strchr(sta_pattern, '.')) == NULL ) {
if(!nmxp_chan_cpy_sta_chan(pattern, sta_pattern, cha_pattern)) {
nmxp_log(1, 0, "Channel pattern %s is not in STA.CHAN format!\n", pattern);
return -1;
}
if(cha_pattern) {
*cha_pattern++ = '\0';
}
l = strlen(sta_pattern);
i = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment