Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
95e588fa
Commit
95e588fa
authored
Aug 31, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialize local variables in ifuse.c
parent
5dc38059
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ifuse.c
src/ifuse.c
+5
-5
No files found.
src/ifuse.c
View file @
95e588fa
...
@@ -54,7 +54,7 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
...
@@ -54,7 +54,7 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
static
int
ifuse_readdir
(
const
char
*
path
,
void
*
buf
,
fuse_fill_dir_t
filler
,
static
int
ifuse_readdir
(
const
char
*
path
,
void
*
buf
,
fuse_fill_dir_t
filler
,
off_t
offset
,
struct
fuse_file_info
*
fi
)
{
off_t
offset
,
struct
fuse_file_info
*
fi
)
{
int
i
;
int
i
;
char
**
dirs
;
char
**
dirs
=
NULL
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
iphone_afc_get_dir_list
(
afc
,
path
,
&
dirs
);
iphone_afc_get_dir_list
(
afc
,
path
,
&
dirs
);
...
@@ -73,7 +73,7 @@ static int ifuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
...
@@ -73,7 +73,7 @@ static int ifuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
static
int
ifuse_create
(
const
char
*
path
,
mode_t
mode
,
struct
fuse_file_info
*
fi
)
{
static
int
ifuse_create
(
const
char
*
path
,
mode_t
mode
,
struct
fuse_file_info
*
fi
)
{
// exactly the same as open but using a different mode
// exactly the same as open but using a different mode
iphone_afc_file_t
file
;
iphone_afc_file_t
file
=
NULL
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
iphone_afc_open_file
(
afc
,
path
,
IPHONE_AFC_FILE_WRITE
,
&
file
);
iphone_afc_open_file
(
afc
,
path
,
IPHONE_AFC_FILE_WRITE
,
&
file
);
...
@@ -84,7 +84,7 @@ static int ifuse_create(const char *path, mode_t mode, struct fuse_file_info *fi
...
@@ -84,7 +84,7 @@ static int ifuse_create(const char *path, mode_t mode, struct fuse_file_info *fi
}
}
static
int
ifuse_open
(
const
char
*
path
,
struct
fuse_file_info
*
fi
)
{
static
int
ifuse_open
(
const
char
*
path
,
struct
fuse_file_info
*
fi
)
{
iphone_afc_file_t
file
;
iphone_afc_file_t
file
=
NULL
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
uint32_t
mode
=
0
;
uint32_t
mode
=
0
;
...
@@ -107,7 +107,7 @@ static int ifuse_open(const char *path, struct fuse_file_info *fi) {
...
@@ -107,7 +107,7 @@ static int ifuse_open(const char *path, struct fuse_file_info *fi) {
static
int
ifuse_read
(
const
char
*
path
,
char
*
buf
,
size_t
size
,
off_t
offset
,
static
int
ifuse_read
(
const
char
*
path
,
char
*
buf
,
size_t
size
,
off_t
offset
,
struct
fuse_file_info
*
fi
)
{
struct
fuse_file_info
*
fi
)
{
int
bytes
;
int
bytes
=
0
;
iphone_afc_file_t
file
;
iphone_afc_file_t
file
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
...
@@ -144,7 +144,7 @@ static int ifuse_fsync(const char *path, int datasync, struct fuse_file_info *fi
...
@@ -144,7 +144,7 @@ static int ifuse_fsync(const char *path, int datasync, struct fuse_file_info *fi
}
}
static
int
ifuse_release
(
const
char
*
path
,
struct
fuse_file_info
*
fi
){
static
int
ifuse_release
(
const
char
*
path
,
struct
fuse_file_info
*
fi
){
iphone_afc_file_t
file
;
iphone_afc_file_t
file
=
NULL
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
iphone_afc_client_t
afc
=
fuse_get_context
()
->
private_data
;
file
=
g_hash_table_lookup
(
file_handles
,
&
(
fi
->
fh
));
file
=
g_hash_table_lookup
(
file_handles
,
&
(
fi
->
fh
));
...
...
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