-lbacsql -lbacfind -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
gigaslam.o: gigaslam.c
- $(CC) $(CFLAGS) -c $<
+ $(CXX) $(CFLAGS) -c $<
gigaslam: gigaslam.o
- $(CC) -o $@ gigaslam.o
+ $(CXX) -o $@ gigaslam.o
grow: Makefile grow.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -o $@ grow.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
#include <unistd.h>
#include <string.h>
-int main(void)
+int main(int argc, char *const *argv)
{
FILE *fp = fopen("gigaslam.gif", "w");
char header[] = "<html>\n<table>\n<tr><td>\n";
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2009-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 2009-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
/* Local variables */
static B_DB *db;
static const char *file = "COPYRIGHT";
-static DBId_t fnid=0;
+//static DBId_t fnid=0;
static const char *db_name = "bacula";
static const char *db_user = "bacula";
static const char *db_password = "";
Dmsg0(200, "DB-Statement: CREATE TABLE for datatypes\n");
if (!db_sql_query(db, "CREATE TABLE t2 ("
- "c1 integer,"
- "c2 varchar(255),"
- "c3 char(255)"
- /* some more datatypes... "c4 ," */
+ "c1 integer,"
+ "c2 varchar(255),"
+ "c3 char(255)"
+ /* some more datatypes... "c4 ," */
")" , NULL, NULL))
{
Emsg0(M_ERROR_TERM, 0, _("CREATE-Stmt went wrong\n"));