Projects
Mega:23.09
patch
_service:tar_scm:Avoid-set_file_attributes-sign...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:Avoid-set_file_attributes-sign-conversion-warnings.patch of Package patch
From 8b8b9f002ea665372d7afc505fa2fe2929d0a3fe Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher <agruen@gnu.org> Date: Wed, 7 Feb 2018 12:01:22 +0100 Subject: [PATCH] Avoid set_file_attributes sign conversion warnings * src/util.c (set_file_attributes): Avoid sign conversion warnings when assigning -1 to uid_t / gid_t. Signed-off-by: Xibo.Wang <wangxb12@chinatelecom.cn> --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.c b/src/util.c index a626fdd..0900466 100644 --- a/src/util.c +++ b/src/util.c @@ -256,8 +256,8 @@ set_file_attributes (char const *to, enum file_attributes attr, } if (attr & FA_IDS) { - static uid_t euid = -1; - static gid_t egid = -1; + static uid_t euid = (uid_t)-1; + static gid_t egid = (gid_t)-1; uid_t uid; uid_t gid; -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2