]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(copy_reg): Use NULL, not `0'.
authorJim Meyering <jim@meyering.net>
Mon, 28 Mar 2005 17:55:43 +0000 (17:55 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 28 Mar 2005 17:55:43 +0000 (17:55 +0000)
src/copy.c

index d9f497e9ca9c995cbaf65f5180f54fe91654ea16..77bc69aa857a8b725fb0f611d6e9c92e2561c761 100644 (file)
@@ -337,7 +337,7 @@ copy_reg (const char *src_path, const char *dst_path,
 
       n_read_total += n_read;
 
-      ip = 0;
+      ip = NULL;
       if (make_holes)
        {
          buf[n_read] = 1;      /* Sentinel to stop loop.  */
@@ -370,9 +370,9 @@ copy_reg (const char *src_path, const char *dst_path,
            }
          else
            /* Clear to indicate that a normal write is needed. */
-           ip = 0;
+           ip = NULL;
        }
-      if (ip == 0)
+      if (ip == NULL)
        {
          size_t n = n_read;
          if (full_write (dest_desc, buf, n) != n)