Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
steam
systemd
Commits
858209c5
Commit
858209c5
authored
Sep 27, 2010
by
Lennart Poettering
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readahead: properly initialize variable
parent
1a34d367
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/readahead-collect.c
src/readahead-collect.c
+1
-1
src/readahead-replay.c
src/readahead-replay.c
+1
-1
No files found.
src/readahead-collect.c
View file @
858209c5
...
@@ -200,7 +200,7 @@ static int qsort_compare(const void *a, const void *b) {
...
@@ -200,7 +200,7 @@ static int qsort_compare(const void *a, const void *b) {
static
int
collect
(
const
char
*
root
)
{
static
int
collect
(
const
char
*
root
)
{
enum
{
enum
{
FD_FANOTIFY
,
/* Get the actual
y
fs events */
FD_FANOTIFY
,
/* Get the actual fs events */
FD_SIGNAL
,
FD_SIGNAL
,
FD_INOTIFY
,
/* We get notifications to quit early via this fd */
FD_INOTIFY
,
/* We get notifications to quit early via this fd */
_FD_MAX
_FD_MAX
...
...
src/readahead-replay.c
View file @
858209c5
...
@@ -114,7 +114,7 @@ finish:
...
@@ -114,7 +114,7 @@ finish:
}
}
static
int
replay
(
const
char
*
root
)
{
static
int
replay
(
const
char
*
root
)
{
FILE
*
pack
;
FILE
*
pack
=
NULL
;
char
line
[
LINE_MAX
];
char
line
[
LINE_MAX
];
int
r
=
0
;
int
r
=
0
;
char
*
pack_fn
=
NULL
,
c
;
char
*
pack_fn
=
NULL
,
c
;
...
...
Write
Preview
Markdown
is supported
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