Mercurial > hg > dmlib
comparison src/dmlib.c @ 957:b66653c9acb3
Oops, forgot to add const in the actual function .. 100L.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Feb 2015 02:21:57 +0200 |
parents | 6b2f41844580 |
children | 985225a93aeb |
comparison
equal
deleted
inserted
replaced
956:d4e411192238 | 957:b66653c9acb3 |
---|---|
154 { | 154 { |
155 return DM_SYSTEM_ERRORS + errno; | 155 return DM_SYSTEM_ERRORS + errno; |
156 } | 156 } |
157 | 157 |
158 | 158 |
159 const char *dmErrorStr(int error) | 159 const char *dmErrorStr(const int error) |
160 { | 160 { |
161 if (error >= DM_SYSTEM_ERRORS) | 161 if (error >= DM_SYSTEM_ERRORS) |
162 return strerror(error - DM_SYSTEM_ERRORS); | 162 return strerror(error - DM_SYSTEM_ERRORS); |
163 | 163 |
164 switch (error) | 164 switch (error) |