[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful geta
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call |
Date: |
Fri, 3 Jan 2014 12:12:40 -0800 |
Yo Ferry!
On Fri, 03 Jan 2014 19:43:14 +0100
Ferry Huberts <address@hidden> wrote:
> The implementation may also set errno to EINVAL in case no
> conversion was performed (no digits seen, and 0 returned).
Re-read the man page, strol() sets errno, but atoi() does not.
I converted the code to use strtol() so errno is now properly set.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
address@hidden Tel:+1(541)382-8588
signature.asc
Description: PGP signature
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, (continued)
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Mike Frysinger, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Ferry Huberts, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Mike Frysinger, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Ferry Huberts, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Mike Frysinger, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Ferry Huberts, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Greg Troxel, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Gary E. Miller, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Ferry Huberts, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Mike Frysinger, 2014/01/03
- Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call,
Gary E. Miller <=
Re: [gpsd-dev] [PATCH v3 1/1] gps2udp: reset errno after successful getaddrinfo call, Gary E. Miller, 2014/01/03