| 212 | */ |
| 213 | |
| 214 | static void time_enter( void * closure, OBJECT * target, int const found, |
| 215 | timestamp const * const time ) |
| 216 | { |
| 217 | int item_found; |
| 218 | BINDING * b; |
| 219 | struct hash * const bindhash = (struct hash *)closure; |
| 220 | |
| 221 | target = path_as_key( target ); |
| 222 | |
| 223 | b = (BINDING *)hash_insert( bindhash, target, &item_found ); |
| 224 | if ( !item_found ) |
| 225 | { |
| 226 | b->name = object_copy( target ); |
| 227 | b->flags = 0; |
| 228 | } |
| 229 | |
| 230 | timestamp_copy( &b->time, time ); |
| 231 | b->progress = found ? BIND_FOUND : BIND_SPOTTED; |
| 232 | |
| 233 | if ( DEBUG_BINDSCAN ) |
| 234 | printf( "time ( %s ) : %s\n", object_str( target ), time_progress[ |
| 235 | b->progress ] ); |
| 236 | |
| 237 | object_free( target ); |
| 238 | } |
| 239 | |
| 240 | |
| 241 | /* |
nothing calls this directly
no test coverage detected