Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Rudolf
/
huffman
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dfaebe75
authored
Nov 24, 2016
by
Rudolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix no return
Just return 0 as I will not bother moving these to void
parent
94e5b5c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
header.c
huffman.c
tree.c
header.c
View file @
dfaebe75
...
...
@@ -62,7 +62,7 @@ static int read_entry(struct BIT_BUFFER *bitbuf, struct tree *parent)
static
int
read_entries
(
struct
BIT_BUFFER
*
bitbuf
,
struct
tree
*
parent
)
{
read_entry
(
bitbuf
,
parent
);
re
turn
re
ad_entry
(
bitbuf
,
parent
);
}
int
decode_header
(
struct
BIT_BUFFER
*
bitbuf
,
struct
tree
*
parent
)
...
...
huffman.c
View file @
dfaebe75
...
...
@@ -106,6 +106,8 @@ static int encode_file(FILE *in, FILE *out)
free_tree
(
tree
);
bb_flush
(
&
bitbuf
);
return
0
;
}
static
int
decode_file
(
FILE
*
in
,
FILE
*
out
)
...
...
tree.c
View file @
dfaebe75
...
...
@@ -179,6 +179,7 @@ static int write_entry(struct BIT_BUFFER *bitbuf, struct tree *parent,
for
(
int
i
=
length
-
1
;
i
>=
0
;
i
--
)
{
bb_write
(
bitbuf
,
&
pathbuf
[
i
],
1
);
}
return
0
;
}
int
encode_tree
(
struct
BIT_BUFFER
*
bitbuf
,
struct
tree
*
parent
,
char
*
buf
,
...
...
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