all: Clean up unnecessary #include

This commit is contained in:
Solomon Peachy 2019-09-28 11:05:42 -04:00
parent 9b3ae0ed5b
commit c1b15c1fbb
21 changed files with 16 additions and 205 deletions

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND canonselphy_backend
#include "backend_common.h"

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND canonselphyneo_backend
#include "backend_common.h"

View File

@ -29,6 +29,7 @@
#include "backend_common.h"
#include <errno.h>
#include <signal.h>
#define BACKEND_VERSION "0.96"
#ifndef URI_PREFIX

View File

@ -35,7 +35,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <libusb.h>
#include <arpa/inet.h>

View File

@ -41,16 +41,6 @@
assume the worst */
//#define STATE_DIR "/tmp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND dnpds40_backend
#include "backend_common.h"

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND hiti_backend
#include "backend_common.h"

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND kodak1400_backend
#include "backend_common.h"

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND kodak605_backend
#include "backend_common.h"

View File

@ -31,16 +31,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND kodak6800_backend
#include "backend_common.h"

View File

@ -27,22 +27,12 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <string.h>
#define BACKEND magicard_backend
#include "backend_common.h"
#include <time.h>
/* Exported */
#define USB_VID_MAGICARD 0x0C1F
#define USB_PID_MAGICARD_TANGO2E 0x1800

View File

@ -27,15 +27,9 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define BACKEND mitsu70x_backend
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include "backend_common.h"
/* For Integration into gutenprint */
#if defined(HAVE_CONFIG_H)
@ -65,10 +59,6 @@
#warning "No dynamic loading support!"
#endif
#define BACKEND mitsu70x_backend
#include "backend_common.h"
// #include "lib70x/libMitsuD70ImageReProcess.h"
#ifndef LUT_LEN

View File

@ -27,24 +27,15 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define BACKEND mitsu9550_backend
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include "backend_common.h"
/* For Integration into gutenprint */
#if defined(HAVE_CONFIG_H)
#include <config.h>
#endif
#define BACKEND mitsu9550_backend
#if defined(USE_DLOPEN)
#define WITH_DYNAMIC
#include <dlfcn.h>
@ -68,8 +59,6 @@
#warning "No dynamic loading support!"
#endif
#include "backend_common.h"
// #include "lib70x/libMitsuD70ImageReProcess.h"
#ifndef LUT_LEN

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND mitsud90_backend
#include "backend_common.h"

View File

@ -31,16 +31,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND mitsup95d_backend
#include "backend_common.h"

View File

@ -29,16 +29,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND shinkos1245_backend
#include "backend_common.h"

View File

@ -31,16 +31,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND shinkos2145_backend
#include "backend_common.h"

View File

@ -37,16 +37,12 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND shinkos6145_backend
#include "backend_common.h"
#include "backend_sinfonia.h"
#include <time.h>
/* For Integration into gutenprint */
@ -77,11 +73,6 @@
#warning "No dynamic loading support!"
#endif
#define BACKEND shinkos6145_backend
#include "backend_common.h"
#include "backend_sinfonia.h"
/* Image processing library function prototypes */
typedef int (*ImageProcessingFN)(unsigned char *, unsigned short *, void *);
typedef int (*ImageAvrCalcFN)(unsigned char *, unsigned short, unsigned short, unsigned char *);
@ -812,7 +803,7 @@ static int shinkos6145_get_imagecorr(struct shinkos6145_ctx *ctx)
ctx->corrdata = malloc(sizeof(struct shinkos6145_correctionparam));
if (!ctx->corrdata) {
ERROR("Memory allocation failure\n");
ret = -ENOMEM;
ret = CUPS_BACKEND_FAILED;
goto done;
}
memset(ctx->corrdata, 0, sizeof(struct shinkos6145_correctionparam));
@ -865,7 +856,7 @@ static int shinkos6145_get_eeprom(struct shinkos6145_ctx *ctx)
ctx->eeprom = malloc(ctx->eepromlen);
if (!ctx->eeprom) {
ERROR("Memory allocation failure\n");
ret = -ENOMEM;
ret = CUPS_BACKEND_FAILED;
goto done;
}
memcpy(ctx->eeprom, resp.data, ctx->eepromlen);

View File

@ -29,22 +29,13 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
#define BACKEND shinkos6245_backend
#include "backend_common.h"
#include "backend_sinfonia.h"
#include <time.h>
enum {
S_IDLE = 0,
S_PRINTER_READY_CMD,

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include "backend_common.h"
#include "backend_sinfonia.h"

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND sonyupd_backend
#include "backend_common.h"

View File

@ -27,16 +27,6 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#define BACKEND sonyupdneo_backend
#include "backend_common.h"