]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Reduce MIME_MAX_BUFFER to 4k.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 2 Feb 2006 21:58:45 +0000 (21:58 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 2 Feb 2006 21:58:45 +0000 (21:58 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@5058 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/mime.h

index 8ac68eae9eb6e6d2487eebe7087edae2f75a4917..b3ab2af6bd0d4b344d3b1522d6d34113ca9671d6 100644 (file)
@@ -46,7 +46,7 @@ extern "C" {
 #  define MIME_MAX_SUPER       16              /* Maximum size of supertype name */
 #  define MIME_MAX_TYPE                IPP_MAX_NAME    /* Maximum size of type name */
 #  define MIME_MAX_FILTER      256             /* Maximum size of filter pathname */
-#  define MIME_MAX_BUFFER      8192            /* Maximum size of file buffer */
+#  define MIME_MAX_BUFFER      4096            /* Maximum size of file buffer */
 
 
 /*
@@ -70,7 +70,7 @@ typedef enum
   MIME_MAGIC_ISTRING                   /* Case-insensitive string matches */
 } mime_op_t;
 
-typedef struct mime_magic_str          /**** MIME Magic Data ****/
+typedef struct _mime_magic_s           /**** MIME Magic Data ****/
 {
   struct mime_magic_str        *prev,          /* Previous rule */
                        *next,          /* Next rule */
@@ -92,14 +92,14 @@ typedef struct mime_magic_str               /**** MIME Magic Data ****/
   }            value;
 } mime_magic_t;
 
-typedef struct                         /**** MIME Type Data ****/
+typedef struct _mime_type_s            /**** MIME Type Data ****/
 {
   mime_magic_t *rules;                 /* Rules used to detect this type */
   char         super[MIME_MAX_SUPER],  /* Super-type name ("image", "application", etc.) */
                type[MIME_MAX_TYPE];    /* Type name ("png", "postscript", etc.) */
 } mime_type_t;
 
-typedef struct                         /**** MIME Conversion Filter Data ****/
+typedef struct _mime_filter_s          /**** MIME Conversion Filter Data ****/
 {
   mime_type_t  *src,                   /* Source type */
                *dst;                   /* Destination type */
@@ -107,7 +107,7 @@ typedef struct                              /**** MIME Conversion Filter Data ****/
   char         filter[MIME_MAX_FILTER];/* Filter program to use */
 } mime_filter_t;
 
-typedef struct                         /**** MIME Database ****/
+typedef struct _mime_s                 /**** MIME Database ****/
 {
   cups_array_t *types;                 /* File types */
   cups_array_t *filters;               /* Type conversion filters */