FORT BRAGG, N.C. (AP) — The Latest on the court-martial of Army Sgt. Bowe Bergdahl, who walked off his post in Afghanistan.

A military prosecutor says he has made no agreement to limit punishment for Army Sgt. Bowe Bergdahl in return for the soldier's guilty pleas to charges that he endangered comrades by walking off his post in Afghanistan in 2009.

After Bergdahl entered guilty pleas to desertion and misbehavior before the enemy, the prosecutor, Maj. Justin Oshana, told the judge that there's no pretrial agreement between the two sides.

The judge, Army Col. Judge Jeffery R. Nance, spent Monday morning asking Bergdahl questions to make sure he understands what he's pleading guilty to, and that his offenses carry a maximum punishment of life in prison. The judge asked him one last time if he wanted to plead guilty, and Bergdahl replied, "yes."

Nance then told him that he accepted his pleas.