As long as you're aware that the names don't have to be the same (they can be if you want, but it can lead to confusion).
As to the question, I have no idea why you would expect passing a struct to a function to be different from passing a struct to a function. (EDIT: But I suppose I should say that you are correct: passing a struct to a function is not different from passing a struct to a function, so your code is fine.)