diff --git a/chsrc.c b/chsrc.c index c6b1a37..a7482b9 100644 --- a/chsrc.c +++ b/chsrc.c @@ -182,8 +182,7 @@ static const char const **os_packagers[] = { os_ubuntu }; -// static const char const -// *os_ubuntu[] = {"ubuntu", NULL, cmdfunc(os_ubuntu_chsrc)}; + #undef chsrcfunc static const char const* diff --git a/chsrc.h b/chsrc.h index 5e8f240..7c0a774 100644 --- a/chsrc.h +++ b/chsrc.h @@ -30,12 +30,12 @@ mirror_info Pku = {"PKU", "北京大学开源镜像站"}, Bjtu = {"BJTU", "北京交通大学自由与开源软件镜像站"}, Sustech = {"SUSTech", "南方科技大学开源软件镜像站"}, - Ustc = {"USTC", "中国科学技术大学开源镜像站"}, + Ustc = {"USTC", "中国科学技术大学开源镜像站"}; // 大型公司 mirror_info Ali = {"Ali OPSX", "阿里巴巴开源镜像站"}, - Tencent = {"Tencent", "腾讯软件源"}; + Tencent = {"Tencent", "腾讯软件源"}, Netease = {"Netease", "网易开源镜像站"}, Sohu = {"SOHU", "搜狐开源镜像站"}; @@ -83,7 +83,7 @@ os_ubuntu_sources[] = { {&Ustc, "https://mirrors.ustc.edu.cn/ubuntu/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/ubuntu/"}, {&Tencent, "https://mirrors.tencent.com/ubuntu/"}, - {&Wy, "https://mirrors.163.com/ubuntu/"}, + {&Netease, "https://mirrors.163.com/ubuntu/"}, {&Sohu, "https://mirrors.sohu.com/ubuntu/"}, }; diff --git a/helper.h b/helper.h index f479eb4..14829e9 100644 --- a/helper.h +++ b/helper.h @@ -98,13 +98,9 @@ xy_log (int level, const char* str) #define xy_error(str) xy_log (XY_ERROR, str) -/* - * - * - * - * - * - * */ +/** + * + */ static char* xy_strch (const char* str, char src,const char* dest) {