magic_t is a pointer, not an int