Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2003 16:39:04 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Edwin Groothuis <edwin@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/net/lft Makefile ports/net/lft/files patch-lft.c
Message-ID:  <20031001133904.GR551@straylight.oblivion.bg>
In-Reply-To: <200309301227.h8UCRg5J081765@repoman.freebsd.org>
References:  <200309301227.h8UCRg5J081765@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Tue, Sep 30, 2003 at 05:27:42AM -0700, Edwin Groothuis wrote:
> edwin       2003/09/30 05:27:42 PDT
> 
>   FreeBSD ports repository
> 
>   Modified files:
>     net/lft              Makefile 
>     net/lft/files        patch-lft.c 
>   Log:
>   patch for net/lft
>   
>           ports/net/lft has a slight problem on 4.x servers
>   
>           GCC 2.95 does not support atol on 4.x, where as 5.x has
>           atol, to solve this slight problem we must use either a
>           version check, or use depreciated atoll
>   
>   Informed maintainer.

However, my 4.9-RC doesn't have atoll(3) at all - neither as a manpage,
nor even in the src/lib/libc/stdlib/ sources.  How about the following
patch, which makes it use strtoll(3) instead?

G'luck,
Peter

-- 
Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
I had to translate this sentence into English because I could not read the original Sanskrit.

Index: ports/net/lft/files/patch-lft.c
===================================================================
RCS file: /home/ncvs/ports/net/lft/files/patch-lft.c,v
retrieving revision 1.3
diff -u -r1.3 patch-lft.c
--- ports/net/lft/files/patch-lft.c	30 Sep 2003 12:27:42 -0000	1.3
+++ ports/net/lft/files/patch-lft.c	1 Oct 2003 13:34:21 -0000
@@ -54,7 +54,7 @@
        break;
      case 'q':
 -      seq_start = atol (optarg);
-+      seq_start = atoll (optarg);
++      seq_start = strtoll (optarg, NULL, 10);
        break;
      case 'w':
        win_len = atoi(optarg);

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/etj47Ri2jRYZRVMRAvVqAKCB0C/T3mggg5GaAPFMRfL6XubmZACgj2Ex
d5SGuNVVEgX9plwCgZHtdqc=
=wMZj
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031001133904.GR551>