#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>
/* 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;
}
}
}