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:
@@ -17,6 +17,7 @@
|
||||
#include <linux/version.h>
|
||||
#include <malloc.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -652,7 +653,7 @@ dasdview_read_vtoc(dasdview_info_t *info)
|
||||
volume_label_t vlabel;
|
||||
format1_label_t tmp;
|
||||
unsigned long maxblk, pos;
|
||||
u_int64_t vtocblk;
|
||||
uint64_t vtocblk;
|
||||
int i;
|
||||
|
||||
pos = info->dasd_info.label_block * info->blksize;
|
||||
@@ -669,7 +670,7 @@ dasdview_read_vtoc(dasdview_info_t *info)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
vtocblk = (u_int64_t)vtoc_get_cyl_from_cchhb(&vlabel.vtoc) *
|
||||
vtocblk = (uint64_t)vtoc_get_cyl_from_cchhb(&vlabel.vtoc) *
|
||||
info->geo.heads * info->geo.sectors +
|
||||
vtoc_get_head_from_cchhb(&vlabel.vtoc) * info->geo.sectors +
|
||||
vlabel.vtoc.b;
|
||||
@@ -2087,7 +2088,7 @@ static void dasdview_print_raw_track(char *trackdata,
|
||||
{
|
||||
struct eckd_count *ecount;
|
||||
char *data;
|
||||
u_int32_t record;
|
||||
uint32_t record;
|
||||
|
||||
record = 0;
|
||||
data = trackdata;
|
||||
@@ -2112,8 +2113,8 @@ static void dasdview_print_raw_track(char *trackdata,
|
||||
|
||||
static void dasdview_view_raw(dasdview_info_t *info)
|
||||
{
|
||||
u_int64_t residual, trckstart, trckend, track, trckbuffsize;
|
||||
u_int64_t tracks_to_read, trckcount, i;
|
||||
uint64_t residual, trckstart, trckend, track, trckbuffsize;
|
||||
uint64_t tracks_to_read, trckcount, i;
|
||||
char *trackdata;
|
||||
char *data;
|
||||
int rc;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#define DASDVIEW_H
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/********************************************************************************
|
||||
* SECTION: Definitions needed for DASD-API (see dasd.h)
|
||||
@@ -68,7 +69,7 @@ typedef struct dasdview_info
|
||||
int dasd_info_version;
|
||||
unsigned int blksize;
|
||||
struct hd_geometry geo;
|
||||
u_int32_t hw_cylinders;
|
||||
uint32_t hw_cylinders;
|
||||
|
||||
unsigned long long begin;
|
||||
unsigned long long size;
|
||||
|
||||
Reference in New Issue
Block a user