Two days ago , Mr. Obasanjo replaced three top military chiefs and his national security adviser .