Commit 1755a85
committed
libsnmp: Optimize read_config_save_objid()
Make this function slightly faster by eliminating a strlen() call.
Declare the 'oid' input parameter const. Remove a superfluous cast.1 parent ea6c54f commit 1755a85
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2126 | 2126 | | |
2127 | 2127 | | |
2128 | 2128 | | |
2129 | | - | |
| 2129 | + | |
2130 | 2130 | | |
2131 | 2131 | | |
2132 | 2132 | | |
| |||
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2146 | 2145 | | |
2147 | 2146 | | |
2148 | 2147 | | |
| |||
0 commit comments