Incorrect use of token pasting.

This commit is contained in:
espie 2003-12-30 00:46:27 +00:00
parent 6f567b3344
commit b5ecc0e771
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-conf_c,v 1.1 2003/12/30 00:46:27 espie Exp $
--- conf.c.orig 2003-12-30 01:39:44.000000000 +0100
+++ conf.c 2003-12-30 01:39:51.000000000 +0100
@@ -31,7 +31,7 @@
#include <string.h>
#include <stdlib.h>
-#define SYSCONFFILE SYSCONFDIR ## "/flipit.conf"
+#define SYSCONFFILE SYSCONFDIR "/flipit.conf"
static char* dev_tty = 0;

View File

@ -0,0 +1,11 @@
--- conf.h.orig 2003-04-24 03:32:53.000000000 +0200
+++ conf.h 2003-12-30 01:39:13.000000000 +0100
@@ -30,7 +30,7 @@ int conf_parse(void);
const char* conf_dev_tty(void);
void conf_set_dev_tty(const char*);
-#define SYSCONFFILE SYSCONFDIR ## "/flipit.conf"
+#define SYSCONFFILE SYSCONFDIR "/flipit.conf"
#endif /* CONF_H */