![]() strlen is often used incorectly to get the length of strings defined at compile time. In these cases, the behavior can be replicated with sizeof(X) - 1, which is calculated at compile time rather than runtime, reducing overhead. I've created a simple macro to replace these instances and applied it to all the files compiled into the angler kernel. Signed-off-by: Joe Maples <joe@frap129.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
esoc-mdm-4x.c | ||
esoc-mdm-drv.c | ||
esoc.h | ||
esoc_bus.c | ||
esoc_client.c | ||
esoc_dev.c |