Commit 75402361 authored by Peter Pentchev's avatar Peter Pentchev

Add a temporary patch to fix a GCC warning.

parent a1bcfdf8
libdebug (0.5.2-4) UNRELEASED; urgency=medium
* Declare compliance with Debian Policy 4.1.5 with no changes.
* Add a temporary patch to silence a GCC warning.
-- Peter Pentchev <roam@debian.org> Fri, 13 Jul 2018 12:57:07 +0300
......
unsigned-hits.patch
Description: Make an internal counter unsigned.
Forwarded: yes
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2018-08-01
--- a/src/log.c
+++ b/src/log.c
@@ -80,7 +80,7 @@
{
int fd; /* file descriptor associated with cached line */
char *cache; /* previous line */
- int hits; /* number of consecutive identical lines */
+ unsigned hits; /* number of consecutive identical lines */
char buf[256]; /* buffer used for saving "Message repeated..." messages */
};
@@ -367,7 +367,7 @@
mem_free (buf);
char b[35];
- snprintf (b, sizeof(b), "Message repeated %d times\n", priv->cache.hits + 1);
+ snprintf (b, sizeof(b), "Message repeated %u times\n", priv->cache.hits + 1);
if (savetodisk (priv->cache.fd, b) < 0)
goto error;
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