Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
apk-tools
Commits
cc1a0187
Commit
cc1a0187
authored
Apr 15, 2009
by
Natanael Copa
Browse files
state: style fix, init variable at declaration
parent
0c1933a4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/state.c
View file @
cc1a0187
...
...
@@ -162,7 +162,7 @@ int apk_state_lock_dependency(struct apk_state *state,
{
struct
apk_name
*
name
=
dep
->
name
;
struct
apk_name_choices
*
c
;
struct
apk_package
*
installed
,
*
latest
,
*
use
;
struct
apk_package
*
installed
,
*
latest
=
NULL
,
*
use
;
int
i
;
if
(
ns_empty
(
state
->
name
[
name
->
id
]))
{
...
...
@@ -220,7 +220,7 @@ int apk_state_lock_dependency(struct apk_state *state,
#if 1
/* Get latest and installed packages */
for
(
i
=
0
,
latest
=
NULL
;
i
<
c
->
num
;
i
++
)
{
for
(
i
=
0
;
i
<
c
->
num
;
i
++
)
{
struct
apk_package
*
pkg
=
c
->
pkgs
[
i
];
if
(
apk_pkg_get_state
(
c
->
pkgs
[
i
])
==
APK_PKG_INSTALLED
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment