* Error functions.
*/
#ifdef _LIBRADIUS
-void librad_log(const char *, ...);
+void librad_log(const char *, ...)
+#ifdef __GNUC__
+ __attribute__ ((format (printf, 1, 2)))
#endif
-void librad_perror(const char *, ...);
+;
+#endif
+void librad_perror(const char *, ...)
+#ifdef __GNUC__
+ __attribute__ ((format (printf, 1, 2)))
+#endif
+;
extern char librad_errstr[];
extern int librad_dodns;
extern int librad_debug;
void version(void);
/* log.c */
-int radlog(int, const char *, ...);
-int log_debug(const char *, ...);
+int radlog(int, const char *, ...)
+#ifdef __GNUC__
+ __attribute__ ((format (printf, 2, 3)))
+#endif
+;
+int log_debug(const char *, ...)
+#ifdef __GNUC__
+ __attribute__ ((format (printf, 1, 2)))
+#endif
+;
/* pam.c */
#ifdef WITH_PAM
* currently 'alive' list of
* requests.
*/
- DEBUG2("Cleaning up request ID %d with timestamp %08x",
- curreq->packet->id, curreq->timestamp);
+ DEBUG2("Cleaning up request ID %d with timestamp %08lx",
+ curreq->packet->id,
+ (unsigned long)curreq->timestamp);
prevreq = curreq->prev;
if (request_list[id].request_count == 0) {
DEBUG("HORRIBLE ERROR!!!");
* currently 'alive' list of
* requests.
*/
- DEBUG2("Cleaning up request ID %d with timestamp %08x",
- curreq->packet->id, curreq->timestamp);
+ DEBUG2("Cleaning up request ID %d with timestamp %08lx",
+ curreq->packet->id,
+ (unsigned long)curreq->timestamp);
prevreq = curreq->prev;
if (request_list[id].request_count == 0) {
DEBUG("HORRIBLE ERROR!!!");