Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
91c3935e
Commit
91c3935e
authored
Jun 08, 2013
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/etc/ppsi.conf read loop: fix next_r variable computation
Signed-off-by:
Aurelio Colosimo
<
aurelio@aureliocolosimo.it
>
parent
728b2b2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
unix-startup.c
arch-unix/unix-startup.c
+1
-1
wrs-startup.c
arch-wrs/wrs-startup.c
+1
-1
No files found.
arch-unix/unix-startup.c
View file @
91c3935e
...
...
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
conf_buf
=
calloc
(
1
,
conf_fs
.
st_size
+
1
);
do
{
next_r
=
conf_fs
.
st_size
-
r
;
next_r
=
conf_fs
.
st_size
-
conf_len
;
r
=
read
(
conf_fd
,
&
conf_buf
[
conf_len
],
next_r
);
if
(
r
<=
0
)
break
;
...
...
arch-wrs/wrs-startup.c
View file @
91c3935e
...
...
@@ -75,7 +75,7 @@ int main(int argc, char **argv)
conf_buf
=
calloc
(
1
,
conf_fs
.
st_size
+
1
);
do
{
next_r
=
conf_fs
.
st_size
-
r
;
next_r
=
conf_fs
.
st_size
-
conf_len
;
r
=
read
(
conf_fd
,
&
conf_buf
[
conf_len
],
next_r
);
if
(
r
<=
0
)
break
;
...
...
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