why not use macro to get the address of sdshdr?
Ouverte
- Langage dominant
- C
- Étoiles
- 5.6k
- Forks
- 510
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I find that almost in every function, you write "struct sdshdr _sh = (void_)(s - sizeof *sh);" to get the address of sdshdr, I wonder why don't you make it macro?
Like this :
#define SDS_ADDR(s) (void *)((s) - sizeof(struct sdshdr))
struct sdshdr *sh = SDS_ADDR(s);
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.