1 --- a/make/vroot/lock.cc 2007/01/18 15:06:32 1.1
2 +++ b/make/vroot/lock.cc 2007/10/01 11:44:26 1.2
5 * Portions Copyright (c) 2007 Gunnar Ritter, Freiburg i. Br., Germany
7 - * Sccsid @(#)lock.cc 1.4 (gritter) 01/13/07
8 + * Sccsid @(#)lock.cc 1.5 (gritter) 10/1/07
11 #include <avo/intl.h> /* for NOCATGETS */
16 -static void file_lock_error(char *msg, char *file, char *str, int arg1, int arg2);
17 +static void file_lock_error(char *msg, char *file, char *str, const char *arg1, const char *arg2);
19 #define BLOCK_INTERUPTS sigfillset(&newset) ; \
20 sigprocmask(SIG_SETMASK, &newset, &oldset)
23 if (errno != EEXIST) {
24 file_lock_error(msg, name, NOCATGETS("symlink(%s, %s)"),
25 - (int) name, (int) lockname);
27 fprintf(stderr, "%s", msg);
31 * Format a message telling why the lock could not be created.
34 -file_lock_error(char *msg, char *file, char *str, int arg1, int arg2)
35 +file_lock_error(char *msg, char *file, char *str,
36 + const char *arg1, const char *arg2)