5 Star 0 Fork 7

src-openEuler/utshell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0011-fix-arch-display.patch 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
From b4d841e78086b7b5c4aa42d7b7f49520a5ca4e8f Mon Sep 17 00:00:00 2001
From: wangmengc <wangmengc@uniontech.com>
Date: Wed, 5 Mar 2025 11:29:45 +0800
Subject: [PATCH] fix arch display
---
r_shell/src/lib.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/r_shell/src/lib.rs b/r_shell/src/lib.rs
index 38b6207..897302e 100644
--- a/r_shell/src/lib.rs
+++ b/r_shell/src/lib.rs
@@ -14,7 +14,7 @@ extern "C" {
static mut rl_deprep_term_function: Option::<rl_voidfunc_t>;
static mut rl_readline_state: libc::c_ulong;
-
+ fn get_mach_type() -> *mut libc::c_char;
fn getpwuid(__uid: __uid_t) -> *mut passwd;
fn endpwent();
fn sh_setlinebuf(_: *mut FILE) -> libc::c_int;
@@ -1901,7 +1901,7 @@ unsafe extern "C" fn show_shell_usage(fp: *mut FILE, extra: libc::c_int) {
fp,
b"utshell, version %s-(%s)\n\0" as *const u8 as *const libc::c_char,
shell_version_string(),
- MACHTYPE!(),
+ get_mach_type(),
);
}
fprintf(
--
2.39.3
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/utshell.git
git@gitee.com:src-openeuler/utshell.git
src-openeuler
utshell
utshell
openEuler-25.03

搜索帮助

371d5123 14472233 46e8bd33 14472233