diff options
author | Simo Leone <simo@archlinux.org> | 2008-04-08 18:10:09 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-08 18:10:09 +0200 |
commit | 8a92487774b8d15be627f230a4f8d864cfcc9b8d (patch) | |
tree | 440437a9e3d3a279bf383b77408231275ee13fe0 /pkgdb2-add.c | |
parent | 0e94987238ee78221892da19ab3219c49e621901 (diff) | |
download | dbscripts-8a92487774b8d15be627f230a4f8d864cfcc9b8d.tar.gz dbscripts-8a92487774b8d15be627f230a4f8d864cfcc9b8d.tar.xz |
Added a Makefile
Also fixed mysql include in pkgdb2-del.
Rigged some makefile defines for mysql info
instead of hardcoding into the source.
Signed-off-by: Simo Leone <simo@archlinux.org>
Aaron: Added -I for mysql includes
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'pkgdb2-add.c')
-rw-r--r-- | pkgdb2-add.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgdb2-add.c b/pkgdb2-add.c index 489074c..92d1339 100644 --- a/pkgdb2-add.c +++ b/pkgdb2-add.c @@ -4,9 +4,9 @@ #include <string.h> #include <limits.h> -#define DB_USER "archweb" -#define DB_NAME "archweb" -#define DB_PASS "passwords-are-cool" +#ifndef DB_PASS + #error "MySQL connection info undefined" +#endif typedef struct pkg { unsigned int id; |