summaryrefslogtreecommitdiff
path: root/src/nl.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-25 06:21:24 +0000
committerJim Meyering <jim@meyering.net>1997-01-25 06:21:24 +0000
commita8bcd782c456fb67229a2271a083cbadfa1bed79 (patch)
tree2763e0649ac7cce6579abece692a039753a6160d /src/nl.c
parent2be7ff8311c5497b15fcf60aeaca7df1c4313338 (diff)
downloadcoreutils-a8bcd782c456fb67229a2271a083cbadfa1bed79.tar.xz
update for changed xstrtou?l
Diffstat (limited to 'src/nl.c')
-rw-r--r--src/nl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nl.c b/src/nl.c
index a52de4819..62e5e2ebf 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -12,8 +12,8 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Written by Scott Bartram (nancy!scott@uunet.uu.net)
Revised by David MacKenzie (djm@gnu.ai.mit.edu) */
@@ -495,7 +495,7 @@ main (int argc, char **argv)
case 'v':
{
long int tmp_long;
- if (xstrtol (optarg, NULL, 10, &tmp_long, NULL) != LONGINT_OK
+ if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK
/* Allow it to be negative. */
|| tmp_long > INT_MAX)
error (EXIT_FAILURE, 0, _("invalid starting line number: `%s'"),
@@ -506,7 +506,7 @@ main (int argc, char **argv)
case 'i':
{
long int tmp_long;
- if (xstrtol (optarg, NULL, 10, &tmp_long, NULL) != LONGINT_OK
+ if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK
|| tmp_long <= 0 || tmp_long > INT_MAX)
error (EXIT_FAILURE, 0, _("invalid line number increment: `%s'"),
optarg);
@@ -519,7 +519,7 @@ main (int argc, char **argv)
case 'l':
{
long int tmp_long;
- if (xstrtol (optarg, NULL, 10, &tmp_long, NULL) != LONGINT_OK
+ if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK
|| tmp_long <= 0 || tmp_long > INT_MAX)
error (EXIT_FAILURE, 0, _("invalid number of blank lines: `%s'"),
optarg);
@@ -532,7 +532,7 @@ main (int argc, char **argv)
case 'w':
{
long int tmp_long;
- if (xstrtol (optarg, NULL, 10, &tmp_long, NULL) != LONGINT_OK
+ if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK
|| tmp_long <= 0 || tmp_long > INT_MAX)
error (EXIT_FAILURE, 0,
_("invalid line number field width: `%s'"),