why not use macro to get the address of sdshdr?
Abierto
- Lenguaje dominante
- C
- Estrellas
- 5.6k
- Forks
- 510
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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);
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.