Fix: attr: read a long instead of a ulong

Otherwise a pulse count of -1 won't work.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>