git://git.jankratochvil.net
/
captive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial original import from: fuse-2.4.2-2.fc4
[captive.git]
/
src
/
libcaptive
/
client
/
vfs.c
diff --git
a/src/libcaptive/client/vfs.c
b/src/libcaptive/client/vfs.c
index
3a49803
..
180f389
100644
(file)
--- a/
src/libcaptive/client/vfs.c
+++ b/
src/libcaptive/client/vfs.c
@@
-25,7
+25,7
@@
#include "vfs-parent.h"
#include "vfs-slave.h"
#include "init.h"
#include "vfs-parent.h"
#include "vfs-slave.h"
#include "init.h"
-#include "
giochannel-blind.h"
/* for captive_giochannel_setup() */
+#include "
lib.h"
/* for captive_giochannel_setup() */
#include <unistd.h>
#include <string.h>
#include <unistd.h>
#include <string.h>
@@
-101,10
+101,11
@@
int fd;
/* Shameless advertisement: */
for (fd=2 /* STDERR */;fd>=1 /* STDOUT */;fd--) {
if (isatty(fd)) {
/* Shameless advertisement: */
for (fd=2 /* STDERR */;fd>=1 /* STDOUT */;fd--) {
if (isatty(fd)) {
-const gchar *msg="Captive NTFS v" VERSION ".
Updates: http://www.jankratochvil.net/project/captive
/\n";
+const gchar *msg="Captive NTFS v" VERSION ".
Check a new version at: http://www.jankratochvil.net
/\n";
- write(fd,msg,strlen(msg));
- break;
+ /* Prevent: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result */
+ if (strlen(msg)==write(fd,msg,strlen(msg)))
+ break;
}
}
}
}
}
}