From: Ulrich Drepper Date: Sun, 2 Jan 2000 18:55:38 +0000 (+0000) Subject: Formulate warning message stronger. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc775f8311f4c8a7ff698836374d872c067a0fca;p=thirdparty%2Fglibc.git Formulate warning message stronger. --- diff --git a/sysdeps/unix/sysv/linux/llseek.c b/sysdeps/unix/sysv/linux/llseek.c index 9aea8fb008b..f851a79ca8d 100644 --- a/sysdeps/unix/sysv/linux/llseek.c +++ b/sysdeps/unix/sysv/linux/llseek.c @@ -1,5 +1,5 @@ /* Long-long seek operation. - Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -40,3 +40,9 @@ weak_alias (__llseek, llseek) strong_alias (__llseek, __libc_lseek64) weak_alias (__llseek, __lseek64) weak_alias (__llseek, lseek64) + +/* llseek doesn't have a prototype. Since the second parameter is a + 64bit type, this results in wrong behaviour if no prototype is + provided. */ +link_warning (llseek, "\ +the `llseek' function may be dangerous; use `lseek64' instead.")