Projects
home:pandora:RobinOS23
patch
_service:download_src_package:patch-2.7.6-avoid...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:patch-2.7.6-avoid-set_file_attributes-sign-conversion-warnings.patch of Package patch
commit 3bbebbb29f6fbbf2988b9f2e75695b7c0b1f1c9b Author: Andreas Gruenbacher <agruen@gnu.org> Date: Wed Feb 7 12:01:22 2018 +0100 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. diff --git a/src/util.c b/src/util.c index b1c7266..1cc08ba 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;
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