]> git.proxmox.com Git - mirror_lxcfs.git/commit
proc_cpuview: fix compiler warning
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 16 Mar 2020 19:59:41 +0000 (20:59 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 16 Mar 2020 19:59:41 +0000 (20:59 +0100)
commit8220dfcd45a83e4ba0eb323f8a5dba8c15d29dc4
tree54e97013908b9eefbffd143a0779995029724ab5
parent3fe133df31a2bf504cdb8117029101c8e41bc607
proc_cpuview: fix compiler warning

proc_cpuview.c: In function ‘read_cpu_cfs_param’:
proc_cpuview.c:440:39: error: use of assignment suppression and length modifier together in gnu_scanf format [-Werror=format=]
  440 |  if (sscanf(str, first ? "%" PRId64 : "%*" PRId64 " %" PRId64, value) != 1)
      |                                       ^~~~

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/proc_cpuview.c