-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
open-osd: osd-target: Reserved fields should be zero
Last patch to attribute-lists added a reserved field at list-item-header. These should be zeroed out. While at it: * Use "struct list_entry" already defined instead of banging directly onto buffer with field offsets. * change all {set,get}_hton*_{le,be} to receive "void *" instead of "uint8_t *" so addresses of typed members can be used without a cast. * Some one used {set,get}_hton*_le version directly in code, instead of the {set,get}_hton* macros, so it means it will not work on BE machines. (It look like the programmer confused the le_XXX use at some target functions that means List-Entry, but above _le means Little-Endian, and the two concepts were confused) * Remove castes to "uint8_t *" in calls to above functions that are no longer needed Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
- Loading branch information
Boaz Harrosh
committed
Apr 27, 2009
1 parent
cf1c989
commit 531b08c
Showing
7 changed files
with
121 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.