mdp.c:fix warnings of compile