mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use standard uint*_t instead of u_int*_t
Fixes some compilation issues on musl libc. uint*_t is already used so this should not introduce any new issues. Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/193 Signed-off-by: Sertonix <sertonix@posteo.net> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
+3
-2
@@ -11,6 +11,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -99,7 +100,7 @@ static int next_entry(DIR *dir, char *in_path, char *out_path,
|
||||
static int nvme_getdev_by_fid(char *fidstr, char *devpath)
|
||||
{
|
||||
char temp_path[PATH_MAX + 19], real_path[PATH_MAX];
|
||||
u_int64_t target_fid, curfid;
|
||||
uint64_t target_fid, curfid;
|
||||
char *sys_path;
|
||||
DIR *dir;
|
||||
char *end;
|
||||
@@ -140,7 +141,7 @@ static int nvme_getdev_by_nsid(char *nsid_str, char *path, char *dev_path)
|
||||
{
|
||||
char full_path[NVME_PATH_MAX+1], nsid_path[sizeof(full_path)+5];
|
||||
char *end;
|
||||
u_int64_t nsid, curnsid;
|
||||
uint64_t nsid, curnsid;
|
||||
DIR *dir;
|
||||
|
||||
nsid = strtoul(nsid_str, &end, 10);
|
||||
|
||||
Reference in New Issue
Block a user