patch-backend_pixma_bjnp_c 693 B

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