[IRCServices Coding] FTBFS on amd64

Andrew Church achurch at achurch.org
Sun Jul 29 23:32:00 PDT 2007


Thanks for the note, but I'm going to reject most of this as unnecessary;
Services doesn't use the int*_t types for historical reasons (see section
11-1 of the technical manual), and the pointer->int conversions, while bad
practice, are known to always fit in 32 bits.  I've corrected the two
format string bits, since pointer differences and size_t could legitimately
be wider than an int.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/

>
>--===============1334927669==
>Content-Type: multipart/signed; micalg=pgp-sha1;
>	protocol="application/pgp-signature";
>	boundary="=-9UM9eTCG9p0bZ0vGzUkL"
>
>
>--=-9UM9eTCG9p0bZ0vGzUkL
>Content-Type: multipart/mixed; boundary="=-P2RArCa9ERxXvALoWALg"
>
>
>--=-P2RArCa9ERxXvALoWALg
>Content-Type: text/plain
>Content-Transfer-Encoding: quoted-printable
>
>Hi,
>
>It seems that the header <sys/types.h> does not define uint32_t on all
>architectures, so this patch uses <inttypes.h> by default instead, and
>fixes most of the build warnings.
>
>Thanks,
>
>--=20
>Tim Retout <tim at retout.co.uk>
>
>--=-P2RArCa9ERxXvALoWALg
>Content-Disposition: attachment; filename=inttypes.diff
>Content-Type: text/x-patch; name=inttypes.diff; charset=UTF-8
>Content-Transfer-Encoding: base64
>
>SW5kZXg6IGlyY3NlcnZpY2VzLWNodXJjaC01LjF+cHJlMy9kZWZzLmgNCj09PT09PT09PT09PT09
>PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCi0t
>LSBpcmNzZXJ2aWNlcy1jaHVyY2gtNS4xfnByZTMub3JpZy9kZWZzLmgJMjAwNy0wNy0yOCAxNTox
>NToyNy4wMDAwMDAwMDAgKzAxMDANCisrKyBpcmNzZXJ2aWNlcy1jaHVyY2gtNS4xfnByZTMvZGVm
>cy5oCTIwMDctMDctMjggMTU6MTU6MjcuMDAwMDAwMDAwICswMTAwDQpAQCAtMTM3LDcgKzEzNyw3
>IEBADQogI2luY2x1ZGUgPGVycm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tjdXJsYW5nXVtpKzFdKSB7DQot
>ICAgICAgICAgICAgICAgICAgICBpbnQgb2ZzID0gKGludCluZXd0ZXh0c1tjdXJsYW5nXVtpKzFd
>IC0gMTsNCisgICAgICAgICAgICAgICAgICAgIGludHB0cl90IG9mcyA9IChpbnRwdHJfdCluZXd0
>ZXh0c1tjdXJsYW5nXVtpKzFdIC0gMTsNCiAgICAgICAgICAgICAgICAgICAgIG5ld3RleHRzW2N1
>cmxhbmddW2krMV0gPSBuZXdidWYrNCArIG9sZGxlbiArIG9mczsNCiAgICAgICAgICAgICAgICAg
>fSBlbHNlIGlmIChsYW5ndGV4dHNbY3VybGFuZ11baSsxXSkgew0KLSAgICAgICAgICAgICAgICAg
>ICAgaW50IG9mcyA9IGxhbmd0ZXh0c1tjdXJsYW5nXVtpKzFdDQorICAgICAgICAgICAgICAgICAg
>ICBpbnRwdHJfdCBvZnMgPSBsYW5ndGV4dHNbY3VybGFuZ11baSsxXQ0KICAgICAgICAgICAgICAg
>ICAgICAgICAgICAgICAgIC0gbGFuZ3RleHRzW2N1cmxhbmddWzBdOw0KICAgICAgICAgICAgICAg
>ICAgICAgbmV3dGV4dHNbY3VybGFuZ11baSsxXSA9IG5ld2J1ZiArIG9mczsNCiAgICAgICAgICAg
>ICAgICAgfSBlbHNlIHsNCkluZGV4OiBpcmNzZXJ2aWNlcy1jaHVyY2gtNS4xfnByZTMvc29ja2V0
>cy5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
>PT09PT09PT09PT09PT09DQotLS0gaXJjc2VydmljZXMtY2h1cmNoLTUuMX5wcmUzLm9yaWcvc29j
>a2V0cy5jCTIwMDctMDYtMTAgMTQ6MTM6MDQuMDAwMDAwMDAwICswMTAwDQorKysgaXJjc2Vydmlj
>ZXMtY2h1cmNoLTUuMX5wcmUzL3NvY2tldHMuYwkyMDA3LTA3LTI4IDE1OjM2OjQ0LjAwMDAwMDAw
>MCArMDEwMA0KQE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ludHB0cl90KWNvZGUgJiB+RElTQ09OTl9SRVNVTUVfRkxB
>RykpOw0KICAgICB9DQogICAgIHMtPmZsYWdzICY9IH5TRl9ESVNDT05ORUNUSU5HOw0KICAgICBp
>ZiAocy0+ZmQgPj0gMCkgew0KSW5kZXg6IGlyY3NlcnZpY2VzLWNodXJjaC01LjF+cHJlMy9tb2R1
>bGVzL2VuY3J5cHRpb24vdW5peC1jcnlwdC5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
>PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gaXJjc2VydmljZXMt
>Y2h1cmNoLTUuMX5wcmUzLm9yaWcvbW9kdWxlcy9lbmNyeXB0aW9uL3VuaXgtY3J5cHQuYwkyMDA3
>LTA2LTEwIDE0OjEzOjA1LjAwMDAwMDAwMCArMDEwMA0KKysrIGlyY3NlcnZpY2VzLWNodXJjaC01
>LjF+cHJlMy9tb2R1bGVzL2VuY3J5cHRpb24vdW5peC1jcnlwdC5jCTIwMDctMDctMjggMTU6MTU6
>MjcuMDAwMDAwMDAwICswMTAwDQpAQCAtNDQsNyArNDQsNyBAQA0KICAgICB9DQogICAgIGlmIChz
>dHJsZW4ocmVzKSA+IHNpemUtMSkgew0KICAgICAgICAgbW9kdWxlX2xvZygiZW5jcnlwdDogY3J5
>cHQoKSByZXR1cm5lZCB0b28gbG9uZyBhIHN0cmluZyEgKCVkIg0KLSAgICAgICAgICAgICAgICAg
>ICAiIGNoYXJhY3RlcnMpIiwgc3RybGVuKHJlcykpOw0KKyAgICAgICAgICAgICAgICAgICAiIGNo
>YXJhY3RlcnMpIiwgKGludClzdHJsZW4ocmVzKSk7DQogICAgICAgICByZXR1cm4gc3RybGVuKHJl
>cykgKyAxOw0KICAgICB9DQogICAgIHN0cnNjcHkoZGVzdCwgcmVzLCBzaXplKTsNCn==
>
>
>--=-P2RArCa9ERxXvALoWALg--
>
>--=-9UM9eTCG9p0bZ0vGzUkL
>Content-Type: application/pgp-signature; name=signature.asc
>Content-Description: This is a digitally signed message part
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.6 (GNU/Linux)
>
>iD8DBQBGq1fYOHNNd4eQFFIRAvuZAKDq4k4Jn0eL0fyu3P/D7qwsn4T24wCfSMAI
>90bFNYpl49Pnnn8mygn3/ls=
>=ixXP
>-----END PGP SIGNATURE-----
>
>--=-9UM9eTCG9p0bZ0vGzUkL--
>
>
>--===============1334927669==
>Content-Type: text/plain; charset="us-ascii"
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline
>
>------------------------------------------------------------------
>To unsubscribe or change your subscription options, visit:
>http://lists.ircservices.za.net/mailman/listinfo/ircservices-coding
>--===============1334927669==--
>