This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Sys/Hostname.xs: add prototyping behaviour
authorDavid Mitchell <davem@iabyn.com>
Fri, 12 Dec 2014 18:24:03 +0000 (18:24 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 12 Dec 2014 18:34:47 +0000 (18:34 +0000)
commit35ffb081a8fa691dd8ceff9c56d5d00b3ef81b96
tree45f553c6027bf064402722f4c19520977e5e7869
parentf518ad753b4ba6b517e7e1a7b52d1c94e812a1dd
Sys/Hostname.xs: add prototyping behaviour

Shut up the

    Please specify prototyping behavior for Hostname.xs (see perlxs manual)

warning by specifying the default prototyping behaviour. It defaults
to ENABLE, but I've changed it to be explicitly disabled - but it only
contains 1 function which is only used internally, and has no args, so it
doesn't really matter.
ext/Sys-Hostname/Hostname.pm
ext/Sys-Hostname/Hostname.xs