Skip to content

Commit 993a4a5

Browse files
ecsvsimonwunderlich
authored andcommitted
batman-adv: Convert batadv_dat_addr_t to proper type
The #define for batadv_dat_addr_t is doing nothing else than giving u16 a new typename. But C already has the special keyword "typedef" which is also better supported by kernel-doc. Signed-off-by: Sven Eckelmann <[email protected]> Acked-by: Antonio Quartulli <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]>
1 parent 3b1709d commit 993a4a5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

net/batman-adv/types.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ struct seq_file;
4343
#ifdef CONFIG_BATMAN_ADV_DAT
4444

4545
/**
46-
* batadv_dat_addr_t - it is the type used for all DHT addresses. If it is
47-
* changed, BATADV_DAT_ADDR_MAX is changed as well.
46+
* typedef batadv_dat_addr_t - type used for all DHT addresses
47+
*
48+
* If it is changed, BATADV_DAT_ADDR_MAX is changed as well.
4849
*
4950
* *Please be careful: batadv_dat_addr_t must be UNSIGNED*
5051
*/
51-
#define batadv_dat_addr_t u16
52+
typedef u16 batadv_dat_addr_t;
5253

5354
#endif /* CONFIG_BATMAN_ADV_DAT */
5455

0 commit comments

Comments
 (0)