Commit 41c25bf3 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(get_real_username): Use difftime() instead of '-'. (Bug 103).

parent 020b1227
/*
* $Id: rfc931.c,v 1.20 1999/06/03 22:11:12 ceder Exp $
* $Id: rfc931.c,v 1.21 2001/10/26 19:57:02 ceder Exp $
* Copyright (C) 1991-1994, 1998-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -86,11 +86,11 @@ get_real_username(IscSession *USE_IF_LIBAUTHUSER(scb),
else
{
time(&after);
if (after-before > 15)
if (difftime(after, before) > 15)
kom_log ("Identd at %s said %s after %d seconds.\n",
hostname,
result == NULL ? "(error)" : result,
(int)after-before);
(int)difftime(after, before));
}
return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment