Fix Blob_t vs ContactBlob type differences#68
Fix Blob_t vs ContactBlob type differences#68dfandrich wants to merge 1 commit intojuddmon:masterfrom
Conversation
These structs are defined differently with a potentially different memory layouts so they cannot be treated as the same.
|
I should mention that I've only compiled this patch, but I haven't tested it (though it's quite simple to inspect). |
|
Your proposed change is valid and good. For the Arch Linux package jpilot I simply used a sed 's/return Contact_add_blob(c, blob);/return Contact_add_blob(c, (void*)blob);/' jp-contact.c > /tmp/jp-contact.cThe problem you addressed here is a permanent nuisance between the different versions of pilot-link.
extern int Contact_add_blob
PI_ARGS((struct Contact *, Blob_t *));
int Contact_add_blob(struct Contact *c, Blob_t *blob) { ... }
extern int Contact_add_blob
PI_ARGS((struct Contact *, struct ContactBlob *));I assume your distros uses the same mess. So, for me it looks that we are fixing something in J-Pilot that should be fixed in pilot-link's repositories for the various distros. |
|
My distro, as well as https://github.com/jichu4n/pilot-link/, both have |
|
"Your" repository from jichu4n is 9 years old. Please have a look at the history of I consider desrod's repository to be the "official" pilot-link repository. However, not everyone agrees with that. |
These structs are defined differently with a potentially different
memory layouts so they cannot be treated as the same.
This difference causes a compile failure with gcc 15.1