Fix code format for C extension.