Update adapter.c