Checklist (Please check before submitting)
Describe the bug
Through various macros, SC ATS and RTS default tables use zeroes instead of NULL pointers
To Reproduce
N/A
Expected behavior
According to MISRA C:2012 11.9: The macro NULL shall be the only permitted form of integer null pointer constant.
Code snips
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_ats1.c#L97
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts001.c#L75
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts002.c#L69
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts003.c#L69
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts004.c#L69
System observed on:
- Hardware
- OS: Linux 9.8
- Versions HS v7.0.1
Additional context
Add any other context about the problem here.
Reporter Info
Checklist (Please check before submitting)
Describe the bug
Through various macros, SC ATS and RTS default tables use zeroes instead of NULL pointers
To Reproduce
N/A
Expected behavior
According to MISRA C:2012 11.9: The macro NULL shall be the only permitted form of integer null pointer constant.
Code snips
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_ats1.c#L97
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts001.c#L75
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts002.c#L69
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts003.c#L69
https://github.com/nasa/SC/blob/dev/fsw/tables/sc_rts004.c#L69
System observed on:
Additional context
Add any other context about the problem here.
Reporter Info