about summary refs log tree commit diff
path: root/sysvipc/ftok.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysvipc/ftok.c')
-rw-r--r--sysvipc/ftok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysvipc/ftok.c b/sysvipc/ftok.c
index 4ecc3e6822..20d98b9d33 100644
--- a/sysvipc/ftok.c
+++ b/sysvipc/ftok.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
@@ -31,7 +31,7 @@ ftok (pathname, proj_id)
   if (__stat (pathname, &st) < 0)
     return (key_t) -1;
 
-  key = (st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16) | (id << 24);
+  key = (st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16) | (proj_id << 24);
 
   return key;
 }