From: John Kohl Date: Tue, 30 Jan 1990 16:56:42 +0000 (+0000) Subject: update lock_file, unlock_file (take char *'s now in addition to FILE *) X-Git-Tag: krb5-1.0-alpha2~1178 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7345021284a9c63e775dfe949f378d0ef5695a52;p=krb5.git update lock_file, unlock_file (take char *'s now in addition to FILE *) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@205 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/los-proto.h b/src/include/krb5/los-proto.h index 8f738b26c..3715299b5 100644 --- a/src/include/krb5/los-proto.h +++ b/src/include/krb5/los-proto.h @@ -26,9 +26,11 @@ krb5_error_code krb5_read_password int size_return )); krb5_error_code krb5_lock_file PROTOTYPE((FILE *filep, + char *, int mode )); krb5_error_code krb5_unlock_file - PROTOTYPE((FILE *filep )); + PROTOTYPE((FILE *filep, + char * )); krb5_error_code krb5_timeofday PROTOTYPE((krb5_int32 *timeret )); krb5_error_code krb5_ms_timeofday diff --git a/src/lib/krb5/os/unlck_file.c b/src/lib/krb5/os/unlck_file.c index 796c262e2..cc9758450 100644 --- a/src/lib/krb5/os/unlck_file.c +++ b/src/lib/krb5/os/unlck_file.c @@ -23,8 +23,9 @@ static char rcsid_unlock_file_c [] = #include krb5_error_code -krb5_unlock_file(filep) +krb5_unlock_file(filep, pathname) FILE *filep; +char *pathname; { - return krb5_lock_file(filep, KRB5_LOCKMODE_UNLOCK); + return krb5_lock_file(filep, pathname, KRB5_LOCKMODE_UNLOCK); }