1 Star 0 Fork 9

yangl777/iptraf-ng

forked from src-openEuler/iptraf-ng 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-use-correct-format-specifier-for-table-entcount-variable.patch 859 Bytes
一键复制 编辑 原始数据 按行查看 历史
yangl777 提交于 2022-10-20 09:06 . fix some compilation warnings
From c090f7fbafa7a17a807644d92dde736327da23b7 Mon Sep 17 00:00:00 2001
From: Vitezslav Samel <vitezslav@samel.cz>
Date: Thu, 5 May 2022 20:48:14 +0200
Subject: [PATCH] addethentry(): use correct format specifier
Fixes warning from gcc-11.2.
Conflict: NA
Reference:https://github.com/iptraf-ng/iptraf-ng/commit/c090f7fbafa7a17a807644d92dde736327da23b7
Signed-off-by: Vitezslav Samel <vitezslav@samel.cz>
---
src/hostmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hostmon.c b/src/hostmon.c
index 1214483..ef37f55 100644
--- a/src/hostmon.c
+++ b/src/hostmon.c
@@ -290,7 +290,7 @@ static struct ethtabent *addethentry(struct ethtab *table,
table->entcount++;
- mvwprintw(table->borderwin, LINES - 3, 1, " %u entries ",
+ mvwprintw(table->borderwin, LINES - 3, 1, " %lu entries ",
table->entcount);
return ptemp;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangl777/iptraf-ng.git
git@gitee.com:yangl777/iptraf-ng.git
yangl777
iptraf-ng
iptraf-ng
master

搜索帮助