rux.c:639: non-void functin recode_buf should return a value