bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Small cleanup of device name routines


From: Marin Ramesa
Subject: Small cleanup of device name routines
Date: Fri, 13 Sep 2013 13:31:50 +0200

What follows is a small cleanup of device name routines. Patches
2, 4 and 7 can be applied at the same time. They are just changes
in style for consistency. I didn't know how to combine them in one 
commit, so I'm sending them this way, I hope this is not a problem.
I'm not sure about patch 3 - I added checking for null-termination
in name_equal() - this prevents pointers from going to addresses
beyond null-termination, but I am not sure if this is a problem that
requires a modification, if it's a problem at all.

[PATCH 1/7] remove register qualifiers
[PATCH 2/7] small style changes for consistency
[PATCH 3/7] name_equal: return early from function if src null-terminates in 
the loop
[PATCH 4/7] another small change in style for consistency
[PATCH 5/7] remove preprocessor comments
[PATCH 6/7] use boolean_t instead of an int
[PATCH 7/7] another small change in style for consistency



reply via email to

[Prev in Thread] Current Thread [Next in Thread]