diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-11-08 12:40:20 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-11-08 12:40:20 +0000 |
commit | 3f76295758c7990797e1113ac862005532a6b00b (patch) | |
tree | 072cfa76f69bc3c043623e4f9d261ece4d0e1893 /sbin/isakmpd | |
parent | 5f8e52cbeb9e9126071643f52fba8e67e6d49242 (diff) |
rename char array realpath to pathreal to avoid naming conflict with
realpath(3); makes lint a bit happier
ok ho@
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/monitor.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/isakmpd/monitor.c b/sbin/isakmpd/monitor.c index ec6481f9f88..b32170321e9 100644 --- a/sbin/isakmpd/monitor.c +++ b/sbin/isakmpd/monitor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.32 2004/11/08 12:34:00 hshoexer Exp $ */ +/* $OpenBSD: monitor.c,v 1.33 2004/11/08 12:40:19 hshoexer Exp $ */ /* * Copyright (c) 2003 Håkan Olsson. All rights reserved. @@ -221,19 +221,19 @@ monitor_open(const char *path, int flags, mode_t mode) { int fd, mode32 = (int32_t) mode; int32_t err; - char realpath[MAXPATHLEN]; + char pathreal[MAXPATHLEN]; if (path[0] == '/') - strlcpy(realpath, path, sizeof realpath); + strlcpy(pathreal, path, sizeof pathreal); else - snprintf(realpath, sizeof realpath, "%s/%s", m_state.root, + snprintf(pathreal, sizeof pathreal, "%s/%s", m_state.root, path); /* Write data to priv process. */ if (m_write_int32(m_state.s, MONITOR_GET_FD)) goto errout; - if (m_write_raw(m_state.s, realpath, strlen(realpath) + 1)) + if (m_write_raw(m_state.s, pathreal, strlen(pathreal) + 1)) goto errout; if (m_write_int32(m_state.s, flags)) |