workaround warning messages regarding 'warn_unused_return_value' when
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 22 Mar 2005 15:05:24 +0000 (15:05 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 22 Mar 2005 15:05:24 +0000 (15:05 +0000)
using _FORTIFY_SOURCE.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1955 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/chcontext.c
util-vserver/src/vhashify.c

index 4da51d9..0e0ae48 100644 (file)
@@ -211,7 +211,7 @@ setFlags(char const *str, uint32_t *flags)
 
   if (err.ptr!=0) {
     WRITE_MSG(2, "Unknown flag '");
-    write(2, err.ptr, err.len);
+    Vwrite(2, err.ptr, err.len);
     WRITE_MSG(2, "'\n");
     exit(wrapper_exit_code);
   }
@@ -260,7 +260,7 @@ tellContext(xid_t ctx)
   l = utilvserver_fmt_long(buf,ctx);
 
   WRITE_MSG(1, "New security context is ");
-  write(1, buf, l);
+  Vwrite(1, buf, l);
   WRITE_MSG(1, "\n");
 }
 
index 2774631..7d2b072 100644 (file)
@@ -516,7 +516,7 @@ doit(char const *src, char const *dst,
 {
   if (global_args->dry_run || Global_getVerbosity()>=2) {
     WRITE_MSG(1, "unifying   '");
-    (void)write(1, path->d, path->l);
+    Vwrite(1, path->d, path->l);
     WRITE_MSG(1, "'");
     
     if (Global_getVerbosity()>=4) {
@@ -591,7 +591,7 @@ visitDirEntry(struct dirent const *ent)
         (Global_getVerbosity()>=6 && is_dotfile) ||
         (Global_getVerbosity()>=6 && is_link)) ) {
       WRITE_MSG(1, "  skipping '");
-      write(1, path.d, path.l);
+      Vwrite(1, path.d, path.l);
       WRITE_MSG(1, "'");
       if (Global_getVerbosity()>=2) printSkipReason();
       WRITE_MSG(1, "\n");