X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=trace.c;h=fdfa045e2416a952d33115b71991b57a68259199;hp=ffecfbbfe49a05a92d617c529cbebed2fa34899e;hb=f851ca0d9e22673b7cc0a7c2f539c9d51b9b77f8;hpb=57defecea870c265179b69f811416c7a4659b0ee diff --git a/trace.c b/trace.c index ffecfbb..fdfa045 100644 --- a/trace.c +++ b/trace.c @@ -92,7 +92,9 @@ static char *print_trace(int detail, int port, char *interface, char *caller, ch char buffer[256]; time_t ti = trace.sec; struct tm *tm; +#ifdef WITH_MISDN struct mISDNport *mISDNport; +#endif int i; trace_string[0] = '\0'; // always clear string @@ -115,6 +117,7 @@ static char *print_trace(int detail, int port, char *interface, char *caller, ch /* head */ if (detail >= 3) { SCAT(trace_string, "------------------------------------------------------------------------------\n"); +#ifdef WITH_MISDN /* "Port: 1 (BRI PTMP TE)" */ if (trace.port >= 0) { mISDNport = mISDNport_first; @@ -132,6 +135,7 @@ static char *print_trace(int detail, int port, char *interface, char *caller, ch SPRINT(buffer, "Port: %d (does not exist)\n", trace.port); SCAT(trace_string, buffer); } else +#endif SCAT(trace_string, "Port: ---"); if (trace.interface[0]) {