Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Rings:0-Bootstrap
acl
0031-walk_tree-mark-internal-variables-as-stati...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0031-walk_tree-mark-internal-variables-as-static.patch of Package acl
From 4a5140636e487aeb1a8a43dbecae3ab395d31392 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" <ldv@altlinux.org> Date: Tue, 15 Sep 2015 23:03:08 +0300 Subject: [PATCH 31/34] walk_tree: mark internal variables as static walk_tree.c internal variables should not be exposed to libmisc users. --- libmisc/walk_tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c index a93a662..d753dc7 100644 --- a/libmisc/walk_tree.c +++ b/libmisc/walk_tree.c @@ -37,13 +37,13 @@ struct entry_handle { long pos; }; -struct entry_handle head = { +static struct entry_handle head = { .next = &head, .prev = &head, /* The other fields are unused. */ }; -struct entry_handle *closed = &head; -unsigned int num_dir_handles; +static struct entry_handle *closed = &head; +static unsigned int num_dir_handles; static int walk_tree_visited(dev_t dev, ino_t ino) { -- 2.5.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor