From 104a7176ac71f5263582d553b84864e22a85297a Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Tue, 23 Dec 2014 12:18:02 +0100 Subject: [PATCH] ID:354 - Replace obsolete u_int with uint32_t in dimm_spd.c --- lib/dimm_spd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dimm_spd.c b/lib/dimm_spd.c index 91ae117..d12a301 100644 --- a/lib/dimm_spd.c +++ b/lib/dimm_spd.c @@ -867,6 +867,8 @@ ipmi_spd_print(uint8_t *spd_data, int len) int sdram_width = 0; int mem_size = 0; int lrank_dimm; + uint32_t year; + uint32_t week; if (len < 148) return -1; /* we need first 91 bytes to do our thing */ @@ -931,8 +933,8 @@ ipmi_spd_print(uint8_t *spd_data, int len) } - u_int year = (spd_data[323]>>4)*10 + spd_data[323]&15; - u_int week = (spd_data[324]>>4)*10 + spd_data[324]&15; + year = (spd_data[323]>>4)*10 + spd_data[323]&15; + week = (spd_data[324]>>4)*10 + spd_data[324]&15; printf(" Manufacture Date : year %4d week %2d\n", 2000 + year, week);