]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
solidigm: Eliminate <linux/limits.h>
authorWarner Losh <imp@bsdimp.com>
Sat, 4 May 2024 03:32:07 +0000 (21:32 -0600)
committerDaniel Wagner <wagi@monom.org>
Fri, 10 May 2024 11:59:21 +0000 (13:59 +0200)
commitf453d64b2e8b0e6427aee9509cfd003aaae90e67
tree13697a27e7ff694446da4cf2d1bace4b1fa80313
parent3d53db94f0c522773bb83bf0119e9d19cc9c7a3d
solidigm: Eliminate <linux/limits.h>

ARG_MAX is defined in <limits.h>, per POSIX, but it's defined to be a
variable in glibc. Instead, get rid of it entirely by using asprintf to
construct the commands. This prevents us from trying a partially
constructed command that might do something unintentional. For
solidigm-market-log.c, there's no constants needed from
<linux/limits.h>. With this we can delete it both places.

Signed-off-by: Warner Losh <imp@bsdimp.com>
plugins/solidigm/solidigm-internal-logs.c
plugins/solidigm/solidigm-market-log.c