Skip to content

Commit a88bd8c

Browse files
committed
pap: remove unconditional conditional
While I appreciate the extra contextual information about the problem space which is communicated by the macro name, it's still permanently set, so the macro and its ifdefs are redundant. The command line options it gates are already documented as fixtures in the man page.
1 parent 45f4d90 commit a88bd8c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

bin/pap/pap.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#include <string.h>
2424
#include <stdlib.h>
2525

26-
#define FUCKED
27-
2826
#define _PATH_PAPRC ".paprc"
2927

3028
#define IMAGEWRITER "ImageWriter"
@@ -172,16 +170,13 @@ int main(int ac, char **av)
172170

173171
while ((c = getopt(ac, av, "dWwcep:s:EA:")) != EOF) {
174172
switch (c) {
175-
#ifdef FUCKED
176-
177173
case 'w' :
178174
waitforprinter = 1;
179175
break;
180176

181177
case 'W' :
182178
waitforidle = 1;
183179
break;
184-
#endif /* FUCKED */
185180

186181
/* enable debugging */
187182
case 'd' :
@@ -932,8 +927,6 @@ static int send_file(int fd, ATP atp, int lastfile, int is_imagewriter)
932927
printf("< STATUS\n"), fflush(stdout);
933928
}
934929

935-
#ifdef FUCKED
936-
937930
if (waitforprinter) {
938931
char st_buf[1024]; /* XXX too big */
939932
memcpy(st_buf, (char *) rniov[0].iov_base + 9,
@@ -945,7 +938,6 @@ static int send_file(int fd, ATP atp, int lastfile, int is_imagewriter)
945938
}
946939
}
947940

948-
#endif /* FUCKED */
949941
updatestatus((char *) rniov[0].iov_base + 9,
950942
((char *)rniov[0].iov_base)[8]);
951943
}

0 commit comments

Comments
 (0)