[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions.
From: |
Robert Norris |
Subject: |
Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions. |
Date: |
Wed, 23 Mar 2016 23:56:19 +0000 |
>>>> Are we now ok with malloc()?
>>>
>>> I just did a pull of git HEAD, the searched for malloc. I see mo
>>> malloc() added i the last year.
>>>
>>> What am I missing?
>>
>> The patch that started this thread uses strdup() which calls malloc().
>
> Yeah, there it is. Good eye.
>
> Since the input (isotime) is a fixed length string it would be
> easy to get rid of the malloc(). Or, even better, there was never any
> reason to duplicate the input string at all. Patches anyone?
>
Quote from hacking.html:
"The <code>gpsd</code> daemon doesn't (though the client-side code does)."
Since this is only for Windows builds for libgps - it is only for the client
side thus should be OK.
Rob.
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., (continued)
[gpsd-dev] [PATCH] Add Windows versions of time related functions., Rob Norris, 2016/03/21
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Eric S. Raymond, 2016/03/22
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Beat Bolli, 2016/03/23
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Gary E. Miller, 2016/03/23
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Beat Bolli, 2016/03/23
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Gary E. Miller, 2016/03/23
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions.,
Robert Norris <=
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Gary E. Miller, 2016/03/23
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Oliver Jowett, 2016/03/23
- Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Gary E. Miller, 2016/03/23
Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions., Eric S. Raymond, 2016/03/23