Commit 577d13e
Mark Stapp
lib,zebra: replace VRF_GET_ID macro
Remove a macro and replace it with a simple function. The macro
returned from the calling function in error paths; but since the
application code wasn't involved, it wasn't able to clean up
memory allocations. Replace the macro with a simple function
that returns to the application code; the application can
then handle errors itself.
Signed-off-by: Mark Stapp <[email protected]>1 parent 0975ac5 commit 577d13e
4 files changed
+56
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | | - | |
206 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | | - | |
1017 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1018 | 1020 | | |
1019 | 1021 | | |
1020 | 1022 | | |
| |||
1700 | 1702 | | |
1701 | 1703 | | |
1702 | 1704 | | |
1703 | | - | |
1704 | | - | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1705 | 1709 | | |
1706 | 1710 | | |
1707 | 1711 | | |
| |||
1869 | 1873 | | |
1870 | 1874 | | |
1871 | 1875 | | |
1872 | | - | |
1873 | | - | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
1874 | 1880 | | |
1875 | 1881 | | |
1876 | 1882 | | |
| |||
1969 | 1975 | | |
1970 | 1976 | | |
1971 | 1977 | | |
1972 | | - | |
1973 | | - | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
1974 | 1982 | | |
1975 | 1983 | | |
1976 | 1984 | | |
| |||
2022 | 2030 | | |
2023 | 2031 | | |
2024 | 2032 | | |
2025 | | - | |
2026 | | - | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
2027 | 2037 | | |
2028 | 2038 | | |
2029 | 2039 | | |
| |||
0 commit comments