]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Include libgen.h for basename prototype.
authorWarner Losh <imp@bsdimp.com>
Thu, 4 Oct 2018 05:29:04 +0000 (23:29 -0600)
committerWarner Losh <imp@bsdimp.com>
Thu, 4 Oct 2018 05:43:34 +0000 (23:43 -0600)
commit471feca652bf86be7aa722565af70831678a89a1
tree037578f73e75bfe92c5b82a56a4bbdfdc98f6ac6
parent7695ef93720ed3550716d7d978fbb360f05f2964
Include libgen.h for basename prototype.

Also, convert open_dev to take a char * and remove the cast from where
it's called. basenmae takes a char * and modifies the string. In this
case, such modifications are fine and only the const char * type was
in error.
nvme.c