projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tolto un TODO e inizio della risistemazione di timerfd.
[gapil.git]
/
sources
/
FullWrite.c
diff --git
a/sources/FullWrite.c
b/sources/FullWrite.c
index dbddf1a5972d69156fb2eb551af70ea3d592e151..f2ab3849fc2f9de29d37fa162bf22212e992985e 100644
(file)
--- a/
sources/FullWrite.c
+++ b/
sources/FullWrite.c
@@
-24,11
+24,9
@@
* Author: Simone Piccardi
* Jun. 2001
*
* Author: Simone Piccardi
* Jun. 2001
*
- * $Id: FullWrite.c,v 1.1 2003/02/02 20:35:33 piccardi Exp $
- *
****************************************************************/
****************************************************************/
-#include <unistd.h>
-#include <errno.h>
+#include <unistd.h>
/* unix standard library */
+#include <errno.h>
/* error definitions and routines */
ssize_t FullWrite(int fd, const void *buf, size_t count)
{
ssize_t FullWrite(int fd, const void *buf, size_t count)
{
@@
-47,6
+45,6
@@
ssize_t FullWrite(int fd, const void *buf, size_t count)
nleft -= nwritten; /* set left to write */
buf +=nwritten; /* set pointer */
}
nleft -= nwritten; /* set left to write */
buf +=nwritten; /* set pointer */
}
- return (
coun
t);
+ return (
nlef
t);
}
}