Skip to content

Commit

Permalink
Clean up lint in homa.h
Browse files Browse the repository at this point in the history
* Use more precise type "uint32_t" rather than "int"
* Document that pad fields must be zero
  • Loading branch information
johnousterhout committed Nov 15, 2024
1 parent c672115 commit bd8be84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homa.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct homa_recvmsg_args {
* @flags: (in) OR-ed combination of bits that control the operation.
* See below for values.
*/
int flags;
uint32_t flags;

/**
* @error_addr: the address of the peer is stored here when available.
Expand All @@ -127,6 +127,7 @@ struct homa_recvmsg_args {
*/
uint32_t num_bpages;

/* Reserved for future use; must be zero. */
uint32_t _pad[1];

/**
Expand Down

0 comments on commit bd8be84

Please sign in to comment.