]> eyrie.org Git - kerberos/perl-kerberos.git/commitdiff
Include util/util.h in implementations of its functions
authorRuss Allbery <rra@cpan.org>
Wed, 16 Apr 2014 05:33:06 +0000 (22:33 -0700)
committerRuss Allbery <rra@cpan.org>
Wed, 16 Apr 2014 05:33:06 +0000 (22:33 -0700)
It's best practice to include the header file that defines a
function in the C code that implements the function so that the
compiler can detect prototype mismatches.

util/context.c
util/croak.c

index eeaf68fb3a9064da85a40e092f34ccfbd9e05bf0..98e8950ec3a9e4acb7c28910ed4e98b464b8861b 100644 (file)
@@ -33,6 +33,8 @@
 
 #include <portable/krb5.h>
 
+#include <util/util.h>
+
 
 /*
  * Given an SV containing a krb5_context, return the underlying context
index 3630a88ef079f10d831603e414a05aa14d166594..b888e090d49a0a9043a301d906289ec9aa808b92 100644 (file)
@@ -34,6 +34,8 @@
 
 #include <portable/krb5.h>
 
+#include <util/util.h>
+
 
 /*
  * Turn a Kerberos error into a Perl exception.  If the destroy argument is