Skip to content

Commit fa02967

Browse files
hrasiqigaw
authored andcommitted
plugins/virtium: use time_t for time_stamp values
In the vtview_log structs, time_t should be used for any time_stamp values instead of long. This ensures correct builds on 32-bit architectures even with 64-bit time_t (e.g. armhf on Ubuntu). Signed-off-by: Heitor Alves de Siqueira <halves@canonical.com>
1 parent 4564405 commit fa02967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/virtium/virtium-nvme.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ static char vt_default_log_file_name[256];
3232
struct vtview_log_header {
3333
char path[256];
3434
char test_name[256];
35-
long time_stamp;
35+
time_t time_stamp;
3636
struct nvme_id_ctrl raw_ctrl;
3737
struct nvme_firmware_slot raw_fw;
3838
};
3939

4040
struct vtview_smart_log_entry {
4141
char path[256];
42-
long time_stamp;
42+
time_t time_stamp;
4343
struct nvme_id_ns raw_ns;
4444
struct nvme_id_ctrl raw_ctrl;
4545
struct nvme_smart_log raw_smart;

0 commit comments

Comments
 (0)