• R/O
  • SSH
  • HTTPS

opfc: Commit


Commit MetaInfo

Revision915 (tree)
Zeit2011-08-09 13:26:42
Autorsho-otani

Log Message

fixed include image.h

Ändern Zusammenfassung

Diff

--- imagetopdf/trunk/imagetopdf.c (revision 914)
+++ imagetopdf/trunk/imagetopdf.c (revision 915)
@@ -37,7 +37,11 @@
3737
3838 #include "config.h"
3939 #include "common.h"
40+#ifdef _CUPS_SOURCE
41+#include "image.h"
42+#else
4043 #include <cups/image.h>
44+#endif
4145 #include <math.h>
4246
4347 #if CUPS_VERSION_MAJOR < 1 \
@@ -693,7 +697,7 @@
693697 #endif
694698
695699 while ((bytes = fread(buffer, 1, sizeof(buffer), stdin)) > 0)
696- (void)write(fd, buffer, bytes);
700+ write(fd, buffer, bytes);
697701
698702 close(fd);
699703 }
Show on old repository browser