For such preliminary examination such officer shall receive the same fees paid in the same way as a magistrate for any ordinary preliminary examination in a criminal case, except that in counties in which the coroner receives a salary no fees shall be allowed to any officer for services in such preliminary examination.