summaryrefslogtreecommitdiff
path: root/src/nl.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-02-02 08:57:47 +0100
committerJim Meyering <jim@meyering.net>2007-02-02 08:57:47 +0100
commit251f774621735e208e3800022ad4acd0b785784e (patch)
treec923b06e8eaafc5d85529b6552f141a5d39779fa /src/nl.c
parent1d72903fafbd744ea57b25c47607c6b0c9c49766 (diff)
downloadcoreutils-251f774621735e208e3800022ad4acd0b785784e.tar.xz
* src/nl.c (proc_text): Use "NULL", not "(struct re_registers *) 0".
Diffstat (limited to 'src/nl.c')
-rw-r--r--src/nl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nl.c b/src/nl.c
index e8502a8ce..8d3bb5228 100644
--- 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"));