Update ring.c