#include <mit-copyright.h>
#include <moira.h>
#include <moira_site.h>
+#include <moira_schema.h>
#include "update.h"
#include <sys/param.h>
{
int i;
EXEC SQL BEGIN DECLARE SECTION;
- char buf[16], *name;
+ char buf[SERVERS_NAME_SIZE], *name;
int enable;
EXEC SQL END DECLARE SECTION;
struct save_queue *sq;
time_t now;
const char *errmsg;
EXEC SQL END DECLARE SECTION;
- char dfgen_prog[64], dfgen_cmd[128];
+ char dfgen_prog[MAXPATHLEN], dfgen_cmd[2 * MAXPATHLEN];
struct sigaction action, prevaction;
int waits;
EXEC SQL CONNECT :db IDENTIFIED BY :db;
- EXEC SQL SELECT update_int, dfcheck INTO :interval, :dfcheck
+ EXEC SQL SELECT update_int, dfcheck INTO :interval, :dfcheck
FROM servers WHERE name = UPPER(:name);
if (sqlca.sqlcode == SQL_NO_MATCH)
{
void do_hosts(char *service)
{
EXEC SQL BEGIN DECLARE SECTION;
- char type[16], host[73], target[64], script[128];
+ char type[SERVERS_TYPE_SIZE], host[MACHINE_NAME_SIZE];
+ char target[SERVERS_TARGET_FILE_SIZE], script[SERVERS_SCRIPT_SIZE];
const char *errmsg;
int status = 0, dfgen, replicated;
time_t now;