]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* src/nl.c (proc_text): Use "NULL", not "(struct re_registers *) 0".
authorJim Meyering <jim@meyering.net>
Fri, 2 Feb 2007 07:57:47 +0000 (08:57 +0100)
committerJim Meyering <jim@meyering.net>
Fri, 2 Feb 2007 07:57:47 +0000 (08:57 +0100)
ChangeLog
src/nl.c

index ee43b25a12405ae4d4b7cd3ef022f7ff540bdb99..c7f04aad5833b09d0d47d98a642e79bc4582ead7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-02-02  Jim Meyering  <jim@meyering.net>
 
+       * src/nl.c (proc_text): Use "NULL", not "(struct re_registers *) 0".
+
        * src/c99-to-c89.diff: Make shred.c Index: and a/b prefixes
        consistent, so this can be applied with patch -p0.
        Reported by Matthew Woehlke.
index e8502a8ce7e939079e455a118da615a4860cff31..8d3bb5228087ab7e7a1f9e60a54324771f2a2af5 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -1,5 +1,5 @@
 /* nl -- number lines of files
-   Copyright (C) 89, 92, 1995-2006 Free Software Foundation, Inc.
+   Copyright (C) 89, 92, 1995-2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -348,7 +348,7 @@ proc_text (void)
       break;
     case 'p':
       switch (re_search (current_regex, line_buf.buffer, line_buf.length - 1,
-                        0, line_buf.length - 1, (struct re_registers *) 0))
+                        0, line_buf.length - 1, NULL))
        {
        case -2:
          error (EXIT_FAILURE, errno, _("error in regular expression search"));