Commit db08d31f authored by Alexandru Csete's avatar Alexandru Csete Committed by Manolis Surligas

Fix compiler warning when printing uint64_t

parent 512260ac
Pipeline #38728950 passed with stage
in 11 minutes and 5 seconds
......@@ -17,6 +17,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
......@@ -86,7 +88,7 @@ namespace gr
send_freq (int sock, uint64_t freq)
{
static char buf[512];
snprintf (buf, 512, "%llu\n", freq);
snprintf (buf, 512, "%" PRIu64 "\n", freq);
send (sock, buf, strnlen (buf, 512), 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment