]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: use helper functions in column-list-table.h
authorMasatake YAMATO <yamato@redhat.com>
Fri, 24 Nov 2023 16:07:44 +0000 (01:07 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Wed, 29 Nov 2023 21:52:52 +0000 (06:52 +0900)
commit0cd21cf68c1f16ab21baa273f507c1a9cf2bb0cb
tree891f07d7c93e8a1ba0f787cdce04933bd169f291
parentabccd63d8a32a5164899f4db4dcf1c8dc772e306
lsfd: use helper functions in column-list-table.h

With this change, the combination of "--json -H" works like:

  $ ./lsfd --json -H | head
  {
     "lsfd-columns": [
        {
           "holder": "AINODECLASS",
           "type": "<string>",
           "desc": "class of anonymous inode"
        },{
           "holder": "ASSOC",
           "type": "<string>",
           "desc": "association between file and process"
   ...

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c