Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
27aa148e
Commit
27aa148e
authored
Dec 19, 2004
by
Matt Johnston
Browse files
atomicio.c: one less compile warning
--HG-- extra : convert_revision : 25808b4e64822230283602dee93b85d9d4fa6507
parent
8f14a1cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
atomicio.c
View file @
27aa148e
/*
* Copied from OpenSSH 3.6.1p2
, required for loginrec.c
* Copied from OpenSSH 3.6.1p2
.
*
* Copyright (c) 1995,1999 Theo de Raadt. All rights reserved.
* All rights reserved.
...
...
@@ -25,8 +25,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* Taken from OpenSSH for use with the loginrec code */
/* RCSID("OpenBSD: atomicio.c,v 1.10 2001/05/08 22:48:07 markus Exp "); */
#include "atomicio.h"
...
...
@@ -42,7 +40,8 @@ atomicio(f, fd, _s, n)
size_t
n
;
{
char
*
s
=
_s
;
ssize_t
res
,
pos
=
0
;
ssize_t
res
;
size_t
pos
=
0
;
while
(
n
>
pos
)
{
res
=
(
f
)
(
fd
,
s
+
pos
,
n
-
pos
);
...
...
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