files: Use switch in collect_fd
files: Use switch in collect_fd

For easier transition to tty c/r. We will need more
types here, thus using switch statement makes code
a bit easier to read.

Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

fbocharov/criu,sdgdsffdsfff/criu,kawamuray/criu,rentzsch/criu,efiop/criu,gablg1/criu,marcosnils/criu,sdgdsffdsfff/criu,kawamuray/criu,tych0/criu,eabatalov/criu,marcosnils/criu,AuthenticEshkinKot/criu,eabatalov/criu,tych0/criu,fbocharov/criu,rentzsch/criu,kawamuray/criu,gonkulator/criu,LK4D4/criu,AuthenticEshkinKot/criu,svloyso/criu,eabatalov/criu,eabatalov/criu,kawamuray/criu,fbocharov/criu,gablg1/criu,tych0/criu,fbocharov/criu,sdgdsffdsfff/criu,fbocharov/criu,efiop/criu,tych0/criu,sdgdsffdsfff/criu,biddyweb/criu,kawamuray/criu,marcosnils/criu,rentzsch/criu,KKoukiou/criu-remote,rentzsch/criu,ldu4/criu,svloyso/criu,gablg1/criu,KKoukiou/criu-remote,ldu4/criu,LK4D4/criu,LK4D4/criu,sdgdsffdsfff/criu,tych0/criu,wtf42/criu,marcosnils/criu,ldu4/criu,KKoukiou/criu-remote,wtf42/criu,efiop/criu,biddyweb/criu,wtf42/criu,eabatalov/criu,LK4D4/criu,fbocharov/criu,efiop/criu,marcosnils/criu,ldu4/criu,svloyso/criu,biddyweb/criu,KKoukiou/criu-remote,AuthenticEshkinKot/criu,AuthenticEshkinKot/criu,biddyweb/criu,AuthenticEshkinKot/criu,tych0/criu,marcosnils/criu,wtf42/criu,gablg1/criu,KKoukiou/criu-remote,svloyso/criu,KKoukiou/criu-remote,ldu4/criu,efiop/criu,gablg1/criu,LK4D4/criu,eabatalov/criu,kawamuray/criu,wtf42/criu,gonkulator/criu,gonkulator/criu,gonkulator/criu,rentzsch/criu,biddyweb/criu,LK4D4/criu,wtf42/criu,gablg1/criu,svloyso/criu,gonkulator/criu,svloyso/criu,gonkulator/criu,rentzsch/criu,biddyweb/criu,efiop/criu,ldu4/criu,AuthenticEshkinKot/criu,sdgdsffdsfff/criu