Use strtoul to read an unsigned long, rather than reading a signed long long and casting it. https://bugzilla.suse.com/show_bug.cgi?id=979282
and getulong().