Author: akhaldi
Date: Sun Aug 14 12:06:23 2011
New Revision: 53228
URL:
http://svn.reactos.org/svn/reactos?rev=53228&view=rev
Log:
[DHCPCSVC]
* Include NDK headers on-demand.
* Improve the PCH use.
Modified:
trunk/reactos/dll/win32/dhcpcsvc/dhcp/alloc.c
trunk/reactos/dll/win32/dhcpcsvc/dhcp/api.c
trunk/reactos/dll/win32/dhcpcsvc/dhcp/compat.c
trunk/reactos/dll/win32/dhcpcsvc/dhcp/dhclient.c
trunk/reactos/dll/win32/dhcpcsvc/dhcp/dispatch.c
trunk/reactos/dll/win32/dhcpcsvc/dhcp/options.c
trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c
trunk/reactos/dll/win32/dhcpcsvc/include/rosdhcp.h
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/alloc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/al…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/alloc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/alloc.c [iso-8859-1] Sun Aug 14 12:06:23 2011
@@ -41,7 +41,6 @@
*/
#include "rosdhcp.h"
-#include "dhcpd.h"
struct string_list *
new_string_list(size_t size)
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/api.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/ap…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/api.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/api.c [iso-8859-1] Sun Aug 14 12:06:23 2011
@@ -8,8 +8,6 @@
*/
#include "rosdhcp.h"
-#include <winsock2.h>
-#include <iphlpapi.h>
#define NDEBUG
#include <reactos/debug.h>
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/compat.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/co…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/compat.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/compat.c [iso-8859-1] Sun Aug 14 12:06:23 2011
@@ -1,6 +1,4 @@
#include "rosdhcp.h"
-#include "dhcpd.h"
-#include "stdint.h"
size_t strlcpy(char *d, const char *s, size_t bufsize)
{
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/dhclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/dh…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/dhclient.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/dhclient.c [iso-8859-1] Sun Aug 14 12:06:23
2011
@@ -54,7 +54,6 @@
*/
#include "rosdhcp.h"
-#include "dhcpd.h"
#define PERIOD 0x2e
#define hyphenchar(c) ((c) == 0x2d)
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/di…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/dispatch.c [iso-8859-1] Sun Aug 14 12:06:23
2011
@@ -40,7 +40,7 @@
*/
#include "rosdhcp.h"
-#include "dhcpd.h"
+
//#include <sys/ioctl.h>
//#include <net/if_media.h>
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/options.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/op…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/options.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/options.c [iso-8859-1] Sun Aug 14 12:06:23 2011
@@ -40,12 +40,8 @@
* Enterprises, see ``http://www.vix.com''.
*/
-#include <ctype.h>
-#include <string.h>
-
#define DHCP_OPTION_DATA
#include "rosdhcp.h"
-#include "dhcpd.h"
int bad_options = 0;
int bad_options_max = 5;
Modified: trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/dhcp/ut…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/dhcp/util.c [iso-8859-1] Sun Aug 14 12:06:23 2011
@@ -1,4 +1,3 @@
-#include <stdarg.h>
#include "rosdhcp.h"
#define NDEBUG
Modified: trunk/reactos/dll/win32/dhcpcsvc/include/rosdhcp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dhcpcsvc/include…
==============================================================================
--- trunk/reactos/dll/win32/dhcpcsvc/include/rosdhcp.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/dhcpcsvc/include/rosdhcp.h [iso-8859-1] Sun Aug 14 12:06:23
2011
@@ -4,7 +4,7 @@
#define WIN32_NO_STATUS
#include <winsock2.h>
#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
+#include <ndk/rtlfuncs.h>
#include <iprtrmib.h>
#include <iphlpapi.h>
#include <dhcpcsdk.h>