]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Protocol Clients: Initialize FORM to UNKNOWN
authorAidan Van Dyk <aidan@ifax.com>
Mon, 28 Apr 2008 20:32:00 +0000 (20:32 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Mon, 28 Apr 2008 20:32:00 +0000 (20:32 +0000)
| commit f8a05cb8865b4657f52d011e21836c9dda7e0ecf
| Author: Lee Howard <faxguy@howardsilvan.com>
| Date:   Fri Jan 25 21:38:43 2008 +0000
|
|     Deliberately intialize in an unknown format so that the first document
|     submitted will cause the FORM hfaxd parameter to be used... rather than
|     expecting the server's FORM default to be the same as the client's.

libhylafax/FaxClient.c++
libhylafax/FaxClient.h

index 597fbbe8bf061d33c4227658bfd7a8cd6da8017e..cd3a57c6a7ba73849d791bae77c05d167e2b762e 100644 (file)
@@ -77,7 +77,7 @@ FaxClient::initServerState(void)
     type = TYPE_A;
     mode = MODE_S;
     stru = STRU_F;
-    format = FORM_PS;
+    format = FORM_UNKNOWN;
     curjob = "DEFAULT";
     tzone = TZ_GMT;
     jobFmt = "";
index 35d342500a4b4c5db78c4b00351e823adf41edd6..1a4e177a520fae2e44e48b52f8b728da400a9c4e 100644 (file)
@@ -60,6 +60,7 @@ public:
         MODE_Z = 4             // zlib compressed
     };
     enum {                     // data file FORMats
+        FORM_UNKNOWN = 0,      // unknown, initial setting
         FORM_PS   = 1,         // PostScript Level I
         FORM_PS2  = 2,         // PostScript Level II
         FORM_TIFF = 3,         // TIFF