From 3172ae8916faef332e6017bbbe865a1b73c44554 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 11 Jan 2011 16:59:57 +0000 Subject: [PATCH] Removed unused patches. --- hplip-alloc.patch | 37 ------------------------------------- hplip-guest.patch | 12 ------------ 2 files changed, 49 deletions(-) delete mode 100644 hplip-alloc.patch delete mode 100644 hplip-guest.patch diff --git a/hplip-alloc.patch b/hplip-alloc.patch deleted file mode 100644 index 03e0820..0000000 --- a/hplip-alloc.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -up hplip-2.7.12/prnt/hpijs/compression.cpp.alloc hplip-2.7.12/prnt/hpijs/compression.cpp ---- hplip-2.7.12/prnt/hpijs/compression.cpp.alloc 2008-01-25 12:16:45.000000000 +0000 -+++ hplip-2.7.12/prnt/hpijs/compression.cpp 2008-01-25 12:18:02.000000000 +0000 -@@ -104,12 +104,12 @@ Mode9::Mode9 (SystemServices* pSys,unsig - if (constructor_error != NO_ERROR) // if error in base constructor - return; - -- // In the worst case, compression expands data by 50% -- compressBuf = (BYTE*)pSS->AllocMem(RasterSize + RasterSize/2); -+ // In the worst case, compression expands data by 100% -+ compressBuf = (BYTE*)pSS->AllocMem(2 * RasterSize); - if (compressBuf == NULL) - constructor_error=ALLOCMEM_ERROR; - -- memset(compressBuf, 0, RasterSize + RasterSize/2); -+ memset(compressBuf, 0, 2 * RasterSize); - memset(SeedRow,0,RasterSize); - - ResetSeedRow = FALSE; -@@ -199,7 +199,7 @@ BOOL Mode9::Process(RASTERDATA* input) - return TRUE; - } - -- memset(compressBuf, 0, inputsize + inputsize/2); -+ memset(compressBuf, 0, 2 * inputsize); - - unsigned int originalsize=input->rastersize[myplane]; - unsigned int size=input->rastersize[myplane]; -@@ -571,7 +571,7 @@ Mode3::Mode3 (SystemServices* pSys, Prin - // Worst case is when two rows are completely different - // In that case, one command byte is added for every 8 bytes - // In the worst case, compression expands data by 50% -- compressBuf = (BYTE*)pSS->AllocMem(RasterSize + RasterSize/2); -+ compressBuf = (BYTE*)pSS->AllocMem(2 * RasterSize); - if (compressBuf == NULL) - constructor_error=ALLOCMEM_ERROR; - diff --git a/hplip-guest.patch b/hplip-guest.patch deleted file mode 100644 index 20d22b9..0000000 --- a/hplip-guest.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- hplip-1.6.7/fax/backend/hpfax.py.guest 2006-08-21 17:35:34.000000000 +0100 -+++ hplip-1.6.7/fax/backend/hpfax.py 2006-08-21 17:38:48.000000000 +0100 -@@ -188,9 +188,6 @@ - except IndexError: - input_fd = 0 - -- pdb = pwd.getpwnam(username) -- home_folder, uid, gid = pdb[5], pdb[2], pdb[3] -- - sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - try: - sock.connect((prop.hpssd_host, prop.hpssd_port))