mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
performance: add few restict and const key words
This should make the run to be couple percentages quicker. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
dbf3927c39
commit
b61c93b7a1
3 changed files with 5 additions and 5 deletions
|
|
@ -50,7 +50,7 @@ int
|
|||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
|
||||
__attribute__ ((hot))
|
||||
#endif
|
||||
xstrstr(char *restrict a, const char *restrict b, int len)
|
||||
xstrstr(const char *restrict a, const char *restrict b, const int len)
|
||||
{
|
||||
int i;
|
||||
/* two spaces are very common in lease file, after them
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue