| 238 | |
| 239 | |
| 240 | inline int db_time2str(time_t _v, char* _s, int* _l) |
| 241 | { |
| 242 | if ((!_s) || (!_l) || (*_l < 2)) { |
| 243 | LM_ERR("Invalid parameter value\n"); |
| 244 | return -1; |
| 245 | } |
| 246 | |
| 247 | *_s++ = '\''; |
| 248 | |
| 249 | if (db_time2str_nq(_v, _s, _l)!=0) |
| 250 | return -1; |
| 251 | |
| 252 | *(_s + *_l) = '\''; |
| 253 | *_l += 2; |
| 254 | |
| 255 | return 0; |
| 256 | } |
| 257 | |
| 258 | |
| 259 | /* |
no test coverage detected