ncm-xrootd: remove function prototypes, fix an array reference