Группа :: Система/Настройка/Загрузка и инициализация
Пакет: sysvinit
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0006-ALT-Fix-some-build-warnings.patch
Скачать
Скачать
From 84467e99466d45ecc3a97f8d5dcc8129f542eae7 Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Thu, 16 Dec 2021 19:55:27 +0300
Subject: ALT: Fix some build warnings
---
src/bootlogd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/bootlogd.c b/src/bootlogd.c
index 130733c..4e57047 100644
--- a/src/bootlogd.c
+++ b/src/bootlogd.c
@@ -150,7 +150,7 @@ static int findtty(char *res, const char *startdir, int rlen, dev_t dev)
if (!S_ISCHR(st.st_mode))
continue;
if (st.st_rdev == dev) {
- if ( (int) (strlen(ent->d_name) + strlen(startdir) + 1) >= rlen) {
+ if ( (strlen(ent->d_name) + strlen(startdir) + 1) >= rlen) {
fprintf(stderr, "bootlogd: console device name too long\n");
closedir(dir);
chdir(olddir);
@@ -232,7 +232,7 @@ static int istty(const char *dev)
* See if a console taken from the kernel command line maps
* to a character device we know about, and if we can open it.
*/
-int isconsole(char *s, char *res, int rlen)
+int isconsole(char *s, char *res, size_t rlen)
{
struct consdev *c;
int l, sl, i, fd;
--
2.25.4