Never store food, rubbish or toiletries in your tent. Use a hard canister or hang a bag well clear of the trunk and branch.
Cook and eat away from where you sleep, downwind if possible. Clean your pot before dark.
A habituated animal usually ends up destroyed. Storing food properly protects the wildlife more than it protects you.