#define LOGLINES 128
char logline[LOGLINES][512];
-unsigned long logcur = 0;
+unsigned int logcur = 0;
int logfh = -1;
char logfile[128];
}
int debug_epoint(struct admin_message *msg, struct admin_message *m, int line, int i, int vline)
{
- unsigned long epoint = m[i].u.e.serial;
+ unsigned int epoint = m[i].u.e.serial;
char buffer[256];
unsigned char c;
int j, jj;
}
int debug_join(struct admin_message *msg, struct admin_message *m, int line, int i)
{
- unsigned long join = m[i].u.j.serial;
+ unsigned int join = m[i].u.j.serial;
char buffer[256];
int j, jj;
*p;
int line, offset = 0, hoffset = 0;
int i, ii, j, jj, k;
- unsigned long l, ll;
+ unsigned int l, ll;
int num;
int len;
int off;
color((m[i].u.i.l2link)?green:red);
addstr((m[i].u.i.l2link)?" L2 UP":" L2 down");
}
- color((m[i].u.i.l1link)?green:blue);
- addstr((m[i].u.i.l1link)?" L1 ACTIVE":" L1 inactive");
+ color((m[i].u.i.l1link > 0)?green:blue);
+ if (m[i].u.i.l1link < 0)
+ addstr(" L1 unknown");
+ else
+ addstr((m[i].u.i.l1link)?" L1 ACTIVE":" L1 inactive");
if (m[i].u.i.los)
{
color(red);
int stimeout = 0, ptimeout = 0, atimeout = 0, ctimeout = 0;
int l;
double timer = 0, now_d;
- unsigned long on = 1;
+ unsigned int on = 1;
struct timeval now_tv;
struct timezone now_tz;