]> git.pld-linux.org Git - packages/X11.git/blob - XFree86-xfs-logger.patch
- fixes for RA-branch.
[packages/X11.git] / XFree86-xfs-logger.patch
1 --- XFree86-4.3.0/xc/programs/xfs.org/difs/main.c       Fri Apr  7 10:14:45 2000
2 +++ XFree86-4.3.0/xc/programs/xfs/difs/main.c   Fri Apr  7 10:02:01 2000
3 @@ -56,6 +56,7 @@
4  #include       "dispatch.h"
5  #include       "extentst.h"
6  #include       "difs.h"
7 +#include       "debug.h"
8  
9  char       *ConnectionInfo;
10  int         ConnInfoLen;
11 @@ -77,6 +80,7 @@
12  static Bool create_connection_block(void);
13  
14  char       *configfilename;
15 +int       debug_level; 
16  extern Bool drone_server;
17  
18  extern OldListenRec *OldListen;
19 @@ -92,6 +96,7 @@
20      int         i, oldumask;
21  
22      argcGlobal = argc;
23 +    debug_level = 0;
24      argvGlobal = argv;
25  
26      configfilename = DEFAULT_CONFIG_FILE;
27 diff -Nur xc/programs/xfs.org/include/debug.h xc/programs/xfs/include/debug.h
28 --- xc/programs/xfs.org/include/debug.h Thu Jan  1 01:00:00 1970
29 +++ xc/programs/xfs/include/debug.h     Fri Apr  7 10:02:35 2000
30 @@ -0,0 +1 @@
31 +/* debug.h */
32 \ No newline at end of file
33 --- XFree86-4.3.0/xc/programs/xfs/os./utils.c.orig      Tue Oct 15 03:45:03 2002
34 +++ XFree86-4.3.0/xc/programs/xfs/os/utils.c    Wed May 14 17:12:58 2003
35 @@ -93,6 +93,7 @@
36  #include <stdlib.h>
37  
38  extern char *configfilename;
39 +extern int  debug_level;
40  static Bool dropPriv = FALSE; /* whether or not to drop root privileges */
41  #ifdef DEFAULT_DAEMON
42  static Bool becomeDaemon = TRUE; /* whether to become a daemon or not */
43 @@ -219,7 +219,7 @@
44  static void
45  usage(void)
46  {
47 -    fprintf(stderr, "usage: %s [-config config_file] [-port tcp_port] [-droppriv] [-daemon] [-nodaemon] [-user user_name] [-ls listen_socket]\n",
48 +    fprintf(stderr, "usage: %s [-config config_file] [-port tcp_port] [-droppriv] [-daemon] [-nodaemon] [-user user_name] [-ls listen_socket] [-d debug_level]\n",
49             progname);
50      exit(1);
51  }
52 @@ -333,6 +335,8 @@
53                 ProcessLSoption (argv[++i]);
54             else
55                 usage();
56 +       } else if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {
57 +               debug_level = atoi(argv[++i]);
58         } else if (!strcmp(argv[i], "-droppriv")) {
59                 dropPriv = TRUE;
60         } else if (!strcmp(argv[i], "-daemon")) {
This page took 0.027022 seconds and 3 git commands to generate.