From 22763291f5c6697e68be9e814d4d82aee6e2c778 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 28 Sep 2011 20:54:33 +0000 Subject: [PATCH] Add missing prototypes; always use ANSI prototypes Patch by Jeffrey Altman From: Alexey Melnikov git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25246 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/wshelper/res_comp.c | 10 +--------- src/windows/wshelper/wsh-int.h | 3 +++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/windows/wshelper/res_comp.c b/src/windows/wshelper/res_comp.c index 18e8a7c47..36cd77372 100644 --- a/src/windows/wshelper/res_comp.c +++ b/src/windows/wshelper/res_comp.c @@ -345,22 +345,14 @@ _getlong(u_char *msgp) } void -#ifdef __STDC__ __putshort(register u_short s, register u_char *msgp) -#else -__putshort(s, msgp) - register u_short s; - register u_char *msgp; -#endif { msgp[1] = LOBYTE(s); msgp[0] = HIBYTE(s); } void -__putlong(l, msgp) - register u_long l; - register u_char *msgp; +__putlong(register u_long l, register u_char *msgp) { msgp[3] = LOBYTE(LOWORD(l)); msgp[2] = HIBYTE(LOWORD(l)); diff --git a/src/windows/wshelper/wsh-int.h b/src/windows/wshelper/wsh-int.h index 0041d004e..04b1cfe57 100644 --- a/src/windows/wshelper/wsh-int.h +++ b/src/windows/wshelper/wsh-int.h @@ -1,2 +1,5 @@ void res_init_startup(); void res_init_cleanup(); + +void __putshort(register u_short s, register u_char *msgp); +void __putlong(register u_long l, register u_char *msgp); -- 2.26.2