gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] bug in timehint.c:261 ntpshm_put


From: Max Schulze
Subject: [gpsd-dev] bug in timehint.c:261 ntpshm_put
Date: Mon, 21 Nov 2016 16:30:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

Hello,

I compiled ba9957de and run it in debug mode and it crashes at said line.

Compiler hint is

timehint.c:261:7: warning: format '%s' expects argument of type 'char
*', but argument 5 has type 'int' [-Wformat=]
       "NTP: ntpshm_put(%s,%s) %s @ %s\n",
       ^


I am not comfortable in C but should'nt it be "...ntpshm_put(%s,%d)" as
precision is an int?


Regards,

Max




reply via email to

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