summaryrefslogtreecommitdiff
path: root/package/sane-backends/patches/patch-backend_pixma_bjnp_c
blob: 5d347c00ecdfcb2210c59db161ab9f51283a3431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- sane-backends-1.0.22.orig/backend/pixma_bjnp.c	2010-12-02 00:49:58.000000000 +0100
+++ sane-backends-1.0.22/backend/pixma_bjnp.c	2011-10-01 19:26:01.699066938 +0200
@@ -59,9 +59,6 @@
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
-#ifdef HAVE_SYS_TIME_H
-#include <sys/timeb.h>
-#endif
 
 /* 
  * networking stuff
@@ -196,7 +193,7 @@ truncate_hostname (char *hostname, char
     {
       /* this is a hostname, not an ip-address, so remove domain part of the name */
 
-      if ((dot = index (short_hostname, '.')) != NULL)
+      if ((dot = strchr(short_hostname, '.')) != NULL)
 	*dot = '\0';
     }
   return short_hostname;