aboutsummaryrefslogtreecommitdiff
path: root/src/lock.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-10 20:27:18 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-10 20:40:37 +0300
commit3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4 (patch)
tree65bcc3fc7425af543a9f3a393abe5cdc3e11112c /src/lock.c
parent212825a21d8fa8ec90d7c5b9a1460f845958d445 (diff)
downloadwydawca-3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4.tar.gz
wydawca-3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4.tar.bz2
Remove vasprintf module.
Diffstat (limited to 'src/lock.c')
-rw-r--r--src/lock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lock.c b/src/lock.c
index 1c3a657..bc8505c 100644
--- a/src/lock.c
+++ b/src/lock.c
@@ -178,6 +178,7 @@ int
wydawca_lock (const char *lockname)
{
char *tempname = NULL;
+ size_t size = 0;
int rc;
if (!enable_locking)
@@ -185,7 +186,7 @@ wydawca_lock (const char *lockname)
expire_stale_lock (lockname);
/* build the NFS hitching-post to the lock file */
- asprintf (&tempname, "%s.%lu.%lu.%s",
+ grecs_asprintf (&tempname, &size, "%s.%lu.%lu.%s",
lockname,
(unsigned long) getpid (),
(unsigned long) time (NULL), xgethostname ());
@@ -235,8 +236,9 @@ char *
wydawca_lockname (const char *tag)
{
char *lockname = NULL;
+ size_t size = 0;
char *tagname = fix_tagname (tag);
- asprintf (&lockname, "%s/LCK.%s", lockdir, tagname);
+ grecs_asprintf (&lockname, &size, "%s/LCK.%s", lockdir, tagname);
if (!lockname)
xalloc_die ();
free (tagname);

Return to:

Send suggestions and report system problems to the System administrator.