src/or/consdiff.c
static int
is_valid_router_entry(const char *line)
{
  if (strcmpstart(line, "r ") != 0) {
    return 0;
  }
  return (get_id_hash(line) != NULL);
}
/** Helper: Check that a line is a valid router entry. We must at least be
 * able to fetch a proper identity hash from it for it to be valid.
 */
Check that a line is a valid router entry. We must at least be
able to fetch a proper identity hash from it for it to be valid.
Check that a line is a valid router entry . We must at least be able to fetch a proper identity hash from it for it to be valid .
static int
is_valid_router_entry(const char *line)
{
  if (strcmpstart(line, "r ") != 0) {
    return 0;
  }
  return (get_id_hash(line) != NULL);
}
static int is_valid_router_entry ( const char * line ) { if ( strcmpstart ( line , " " ) != 0 ) { return 0 ; } return ( get_id_hash ( line ) != NULL ) ; }
Helper: Check that a line is a valid router entry.
Helper : Check that a line is a valid router entry .