feat: make renewable energy more affordable
This commit is contained in:
@@ -93,5 +93,5 @@ COVER_REPORT_PATH = ./output
|
||||
## include makefile.rules (Do not change)
|
||||
##
|
||||
##--------------------------------------
|
||||
MAKE_INCLUDE = ../../include
|
||||
MAKE_INCLUDE = ../../inc
|
||||
include $(MAKE_INCLUDE)/Makefile.rules
|
||||
|
||||
@@ -1779,10 +1779,16 @@ int wxc2_read_sysparam(void)
|
||||
return 0;
|
||||
}
|
||||
temp_ptr = strchr(hostname,'-');
|
||||
if (memcmp(ch_ptr,hostname,strlen(hostname)-strlen(temp_ptr)) != 0)
|
||||
{
|
||||
printf("The host name is unexpect!\n");
|
||||
return 0;
|
||||
if (temp_ptr != NULL) {
|
||||
if (strncmp(ch_ptr, hostname, strlen(hostname) - strlen(temp_ptr)) != 0) {
|
||||
printf("The host name is unexpected!\n");
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
if (strncmp(ch_ptr, hostname, strlen(hostname)) != 0) {
|
||||
printf("The host name is unexpected!\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
strcpy(temp_info,ch_ptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user