]> git.ipfire.org Git - thirdparty/suricata.git/commit
sysfs: fix minor compile warning
authorVictor Julien <vjulien@oisf.net>
Fri, 21 Jul 2023 08:03:44 +0000 (10:03 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 25 Jul 2023 13:09:33 +0000 (15:09 +0200)
commitb1535fe1f90ebacfbf152e5f2704c042a078dde5
treec57626e16aed18ec120b967c10a2161f37b76a13
parent1b08c561f6f8f5ae3a1f29b68638f9884673fe58
sysfs: fix minor compile warning

Seen in Debian QA on mipsel.

util-sysfs.c: In function ‘SysFsWriteValue’:
util-sysfs.c:50:45: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int64_t’ {aka ‘long long int’} [-Wformat=]
   50 |     snprintf(sentence, sizeof(sentence), "%ld", value);
      |                                           ~~^   ~~~~~
      |                                             |   |
      |                                             |   int64_t {aka long long int}
      |                                             long int
      |                                           %lld
src/util-sysfs.c