Don't you ever tell me that error handling in C is totally fine.
This function can return anything >= 0 as success. Alternatively, -1 on failure, or 0 on a different failure.
Why is this step necessary? mastodon.technology might not be the server where you are registered, so we need to redirect you to your home server first.
Don't have an account? You can sign up here