Setting int to int instead of pointer