PATCH: less errno.h

Marcus Meissner meissner at suse.de
Thu Jan 23 09:55:22 CST 2003


Hi,

Changelog:
	Remove errno.h from files that do not need it.

Index: dlls/dinput/keyboard/main.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/keyboard/main.c,v
retrieving revision 1.17
diff -u -r1.17 main.c
--- dlls/dinput/keyboard/main.c	6 Aug 2002 23:49:12 -0000	1.17
+++ dlls/dinput/keyboard/main.c	23 Jan 2003 15:45:10 -0000
@@ -23,10 +23,6 @@
 #include "wine/port.h"
 
 #include <string.h>
-#ifdef HAVE_SYS_ERRNO_H
-# include <sys/errno.h>
-#endif
-
 #include "winbase.h"
 #include "winuser.h"
 #include "winerror.h"
Index: dlls/dinput/mouse/main.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/mouse/main.c,v
retrieving revision 1.17
diff -u -r1.17 main.c
--- dlls/dinput/mouse/main.c	24 Dec 2002 01:18:21 -0000	1.17
+++ dlls/dinput/mouse/main.c	23 Jan 2003 15:45:10 -0000
@@ -23,9 +23,6 @@
 #include "wine/port.h"
 
 #include <string.h>
-#ifdef HAVE_SYS_ERRNO_H
-# include <sys/errno.h>
-#endif
 
 #include "winbase.h"
 #include "wingdi.h"
Index: dlls/gdi/win16drv/prtdrv.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/win16drv/prtdrv.c,v
retrieving revision 1.5
diff -u -r1.5 prtdrv.c
--- dlls/gdi/win16drv/prtdrv.c	17 Oct 2002 16:43:44 -0000	1.5
+++ dlls/gdi/win16drv/prtdrv.c	23 Jan 2003 15:45:10 -0000
@@ -27,7 +27,6 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#include <errno.h>
 #include "wine/winbase16.h"
 #include "winuser.h"
 #include "wownt32.h"
Index: dlls/ntdll/critsection.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/critsection.c,v
retrieving revision 1.14
diff -u -r1.14 critsection.c
--- dlls/ntdll/critsection.c	18 Sep 2002 23:13:35 -0000	1.14
+++ dlls/ntdll/critsection.c	23 Jan 2003 15:45:10 -0000
@@ -22,7 +22,6 @@
 #include "wine/port.h"
 
 #include <assert.h>
-#include <errno.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include "winerror.h"
Index: dlls/winedos/module.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/module.c,v
retrieving revision 1.29
diff -u -r1.29 module.c
--- dlls/winedos/module.c	2 Jan 2003 17:59:47 -0000	1.29
+++ dlls/winedos/module.c	23 Jan 2003 15:45:37 -0000
@@ -26,7 +26,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
 #ifdef HAVE_UNISTD_H
Index: dlls/winmm/winearts/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winearts/audio.c,v
retrieving revision 1.9
diff -u -r1.9 audio.c
--- dlls/winmm/winearts/audio.c	19 Oct 2002 17:20:02 -0000	1.9
+++ dlls/winmm/winearts/audio.c	23 Jan 2003 15:45:38 -0000
@@ -46,7 +46,6 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#include <errno.h>
 #include <fcntl.h>
 #include "windef.h"
 #include "wingdi.h"
Index: dlls/winmm/winejack/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winejack/audio.c,v
retrieving revision 1.2
diff -u -r1.2 audio.c
--- dlls/winmm/winejack/audio.c	2 Jan 2003 19:28:09 -0000	1.2
+++ dlls/winmm/winejack/audio.c	23 Jan 2003 15:45:38 -0000
@@ -43,7 +43,6 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#include <errno.h>
 #include <fcntl.h>
 #include "windef.h"
 #include "wingdi.h"
Index: dlls/winmm/winenas/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winenas/audio.c,v
retrieving revision 1.7
diff -u -r1.7 audio.c
--- dlls/winmm/winenas/audio.c	19 Oct 2002 17:20:02 -0000	1.7
+++ dlls/winmm/winenas/audio.c	23 Jan 2003 15:45:39 -0000
@@ -45,7 +45,6 @@
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
 #endif
-#include <errno.h>
 #include <fcntl.h>
 
 #if 0
Index: files/profile.c
===================================================================
RCS file: /home/wine/wine/files/profile.c,v
retrieving revision 1.81
diff -u -r1.81 profile.c
--- files/profile.c	23 Nov 2002 02:24:53 -0000	1.81
+++ files/profile.c	23 Jan 2003 15:45:45 -0000
@@ -23,7 +23,6 @@
 #include "wine/port.h"
 
 #include <ctype.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <string.h>
Index: files/smb.c
===================================================================
RCS file: /home/wine/wine/files/smb.c,v
retrieving revision 1.13
diff -u -r1.13 smb.c
--- files/smb.c	21 Nov 2002 03:45:03 -0000	1.13
+++ files/smb.c	23 Jan 2003 15:45:45 -0000
@@ -58,14 +58,10 @@
 
 #include <assert.h>
 #include <ctype.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#ifdef HAVE_SYS_ERRNO_H
-#include <sys/errno.h>
-#endif
 #include <sys/types.h>
 #include <sys/stat.h>
 #ifdef HAVE_SYS_MMAN_H
Index: library/config.c
===================================================================
RCS file: /home/wine/wine/library/config.c,v
retrieving revision 1.5
diff -u -r1.5 config.c
--- library/config.c	28 Aug 2002 23:42:35 -0000	1.5
+++ library/config.c	23 Jan 2003 15:45:55 -0000
@@ -21,7 +21,6 @@
 #include "config.h"
 #include "wine/port.h"
 
-#include <errno.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
Index: msdos/int21.c
===================================================================
RCS file: /home/wine/wine/msdos/int21.c,v
retrieving revision 1.83
diff -u -r1.83 int21.c
--- msdos/int21.c	23 Jan 2003 01:23:01 -0000	1.83
+++ msdos/int21.c	23 Jan 2003 15:45:55 -0000
@@ -27,7 +27,6 @@
 
 #include <time.h>
 #include <fcntl.h>
-#include <errno.h>
 #include <stdlib.h>
 #include <stdio.h>
 #ifdef HAVE_SYS_FILE_H
Index: programs/wineconsole/curses.c
===================================================================
RCS file: /home/wine/wine/programs/wineconsole/curses.c,v
retrieving revision 1.3
diff -u -r1.3 curses.c
--- programs/wineconsole/curses.c	7 Jan 2003 19:39:25 -0000	1.3
+++ programs/wineconsole/curses.c	23 Jan 2003 15:45:57 -0000
@@ -29,7 +29,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <errno.h>
 #ifdef HAVE_CURSES_H
 #include <curses.h>
 #endif
Index: programs/winedbg/gdbproxy.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/gdbproxy.c,v
retrieving revision 1.4
diff -u -r1.4 gdbproxy.c
--- programs/winedbg/gdbproxy.c	7 Jan 2003 19:45:40 -0000	1.4
+++ programs/winedbg/gdbproxy.c	23 Jan 2003 15:45:58 -0000
@@ -27,7 +27,6 @@
 #include "config.h"
 
 #include <assert.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
 #include <stdio.h>
Index: scheduler/critsection.c
===================================================================
RCS file: /home/wine/wine/scheduler/critsection.c,v
retrieving revision 1.35
diff -u -r1.35 critsection.c
--- scheduler/critsection.c	12 Sep 2002 22:07:06 -0000	1.35
+++ scheduler/critsection.c	23 Jan 2003 15:45:58 -0000
@@ -22,7 +22,6 @@
 #include "wine/port.h"
 
 #include <assert.h>
-#include <errno.h>
 #include <stdio.h>
 #include <sys/types.h>
 
Index: server/pipe.c
===================================================================
RCS file: /home/wine/wine/server/pipe.c,v
retrieving revision 1.24
diff -u -r1.24 pipe.c
--- server/pipe.c	30 May 2002 20:12:58 -0000	1.24
+++ server/pipe.c	23 Jan 2003 15:46:04 -0000
@@ -25,9 +25,6 @@
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
-#ifdef HAVE_SYS_ERRNO_H
-#include <sys/errno.h>
-#endif
 #include <sys/time.h>
 #include <sys/types.h>
 #include <time.h>
Index: server/process.c
===================================================================
RCS file: /home/wine/wine/server/process.c,v
retrieving revision 1.92
diff -u -r1.92 process.c
--- server/process.c	9 Jan 2003 00:01:28 -0000	1.92
+++ server/process.c	23 Jan 2003 15:46:05 -0000
@@ -22,7 +22,6 @@
 #include "wine/port.h"
 
 #include <assert.h>
-#include <errno.h>
 #include <limits.h>
 #include <signal.h>
 #include <string.h>
Index: server/select.c
===================================================================
RCS file: /home/wine/wine/server/select.c,v
retrieving revision 1.19
diff -u -r1.19 select.c
--- server/select.c	16 Aug 2002 20:02:15 -0000	1.19
+++ server/select.c	23 Jan 2003 15:46:05 -0000
@@ -19,7 +19,6 @@
  */
 
 #include <assert.h>
-#include <errno.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
Index: server/serial.c
===================================================================
RCS file: /home/wine/wine/server/serial.c,v
retrieving revision 1.23
diff -u -r1.23 serial.c
--- server/serial.c	16 Jul 2002 01:20:38 -0000	1.23
+++ server/serial.c	23 Jan 2003 15:46:05 -0000
@@ -28,10 +28,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <errno.h>
-#ifdef HAVE_SYS_ERRNO_H
-#include <sys/errno.h>
-#endif
 #include <sys/time.h>
 #include <sys/types.h>
 #include <time.h>
Index: server/smb.c
===================================================================
RCS file: /home/wine/wine/server/smb.c,v
retrieving revision 1.3
diff -u -r1.3 smb.c
--- server/smb.c	31 May 2002 23:06:53 -0000	1.3
+++ server/smb.c	23 Jan 2003 15:46:05 -0000
@@ -29,10 +29,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <errno.h>
-#ifdef HAVE_SYS_ERRNO_H
-#include <sys/errno.h>
-#endif
 #include <sys/time.h>
 #include <sys/types.h>
 #include <time.h>



More information about the wine-patches mailing list