svn commit: r433881 - in head/sysutils: . lttng-tools lttng-tools/files lttng-ust lttng-ust/files
Mathieu Arnold
mat at FreeBSD.org
Sun Feb 12 14:17:07 UTC 2017
Le 11/02/2017 à 17:03, Jan Beich a écrit :
> Mahdi Mokhtari <mmokhi at FreeBSD.org> writes:
>
>> + char tmp_path[PATH_MAX];
>> ++#if defined(__FreeBSD__)
>> ++ const size_t HOST_NAME_MAX = sysconf(_SC_HOST_NAME_MAX);
>> ++#endif
>> + char hostname[HOST_NAME_MAX];
> [...]
>> + struct ltt_session {
>> + char name[NAME_MAX];
>> ++#if defined(__FreeBSD__)
>> ++ char hostname[256]; /* Local hostname. */
>> ++#else
>> + char hostname[HOST_NAME_MAX]; /* Local hostname. */
>> ++#endif
> Why do you mix constant and sysconf() usage?
This one is a struct definition, I do not think you can use sysconf() in it.
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20170212/a914970e/attachment.sig>
More information about the svn-ports-head
mailing list