[Top][All Lists]

[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:09:41 -0800

Yo Ferry!

On Fri,  3 Jan 2014 14:33:47 +0100
Ferry Huberts <address@hidden> wrote:

> It may return errno==2 ("No such file or directory") when the file
> /etc/gai.conf is not present.
> The observed effect was that the port number conversion considered
> a perfectly valid port number as invalid.

I fixed the real root cause, which was improper use of atoi() and errno
when testing the port.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]