svn rev #25246: trunk/src/windows/wshelper/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Sep 28 16:54:33 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25246
Commit By: hartmans
Log Message:
Add missing prototypes; always use ANSI prototypes
Patch by Jeffrey Altman
From: Alexey Melnikov <alexey.melnikov at isode.com>
Changed Files:
U trunk/src/windows/wshelper/res_comp.c
U trunk/src/windows/wshelper/wsh-int.h
Modified: trunk/src/windows/wshelper/res_comp.c
===================================================================
--- trunk/src/windows/wshelper/res_comp.c 2011-09-28 20:54:28 UTC (rev 25245)
+++ trunk/src/windows/wshelper/res_comp.c 2011-09-28 20:54:33 UTC (rev 25246)
@@ -345,22 +345,14 @@
}
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));
Modified: trunk/src/windows/wshelper/wsh-int.h
===================================================================
--- trunk/src/windows/wshelper/wsh-int.h 2011-09-28 20:54:28 UTC (rev 25245)
+++ trunk/src/windows/wshelper/wsh-int.h 2011-09-28 20:54:33 UTC (rev 25246)
@@ -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);
More information about the cvs-krb5
mailing list