Add missing prototypes; always use ANSI prototypes
authorSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:54:33 +0000 (20:54 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:54:33 +0000 (20:54 +0000)
Patch by Jeffrey Altman

From: Alexey Melnikov <alexey.melnikov@isode.com>

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25246 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/wshelper/res_comp.c
src/windows/wshelper/wsh-int.h

index 18e8a7c4724e57e9f464ada66d92e1f680e039db..36cd77372a7e8d8a1d6baaf117222c8100e7fbf6 100644 (file)
@@ -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));
index 0041d004e145c45722c23ef0f1f6e52b48d558bf..04b1cfe570b3a4012c863404eaa41cc5a8871e08 100644 (file)
@@ -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);