]> git.pld-linux.org Git - packages/sane-backends.git/blob - sane-backends-mustek-path.patch
up to 1.0.32
[packages/sane-backends.git] / sane-backends-mustek-path.patch
1 --- sane-backends-1.0.4/tools/mustek600iin-off.c.orig   Mon Aug  9 20:06:01 1999
2 +++ sane-backends-1.0.4/tools/mustek600iin-off.c        Sat Feb 10 20:29:19 2001
3 @@ -28,7 +28,7 @@
4  #include "../include/sane/config.h"
5  #include "../include/sane/sanei.h"
6  
7 -#define MUSTEK_CONF    STRINGIFY(PATH_SANE_CONFIG_DIR) "/mustek.conf"
8 +#define MUSTEK_CONF    "/etc/sane.d/mustek.conf"
9  #define PORT_DEV       "/dev/port"
10  
11  #include <stdio.h>
12 @@ -122,19 +122,13 @@
13    FILE *fp;
14    int pfd;
15  
16 -  /* get config file name from environment if variable is set */
17 -  if (NULL != (cp = getenv ("MUSTEK_CONF")))
18 -    {
19 -      Mustek_Conf = cp;
20 -    }
21 -
22    /* if port is explicitly given, try this one */
23    if (argc > 1)
24      {
25        portaddr = str2int (argv[1]);
26      }
27    /* else try to look it up from SANE's mustek.conf file */
28 -  else if (NULL != (fp = fopen (MUSTEK_CONF, "r")))
29 +  else if (NULL != (fp = fopen (Mustek_Conf, "r")))
30      {
31        char line[256];
32  
This page took 0.109609 seconds and 3 git commands to generate.