evtranalyze: %llu -> %ju, (uintmax_t)

看板DFBSD_submit作者時間16年前 (2010/02/13 09:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
Hi all, I tried to buildworld on x86_64 but evtranalyze would break the build. I made a few simple changes to correct the warnings (that were being treated as errors). I tested on i386 and it compiled as well. I did no functional test though. The patch is here: http://leaf.dragonflybsd.org/~nant/patches/evtranalyze.patch I mostly replaced %llu by %ju and casted the respective printf argument to (uintmax_t). The exception to this was in the sscanf, where I used the PRI*/SCN* macros. Is there a better way to do this? Cheers, Nuno
文章代碼(AID): #1BTW4MF6 (DFBSD_submit)