Initial original import from: fuse-2.4.2-2.fc4
[captive.git] / src / libcaptive / client / vfs.c
index f29d37c..180f389 100644 (file)
@@ -25,7 +25,7 @@
 #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>
 
@@ -101,10 +101,11 @@ int fd;
                /* Shameless advertisement: */
                for (fd=2 /* STDERR */;fd>=1 /* STDOUT */;fd--) {
                        if (isatty(fd)) {
-const gchar *msg="Captive NTFS v" VERSION ".  Check new version: http://www.jankratochvil.net/\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;
                                }
                        }
                }