Mercurial > illumos > illumos-gate
changeset 311:5bb08af1f151
backout 6228013: cstyle errors
author | nr149220 |
---|---|
date | Sun, 07 Aug 2005 13:36:09 -0700 |
parents | 44cf035170ad |
children | 146b014dadf9 |
files | usr/src/cmd/rcap/common/rcapd_stat.h usr/src/cmd/rcap/rcapd/rcapd_main.c |
diffstat | 2 files changed, 1 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/rcap/common/rcapd_stat.h Sun Aug 07 07:56:58 2005 -0700 +++ b/usr/src/cmd/rcap/common/rcapd_stat.h Sun Aug 07 13:36:09 2005 -0700 @@ -36,8 +36,7 @@ /* * Default path to statistics file */ -#define STAT_FILE_DIR "/var/run/daemon" -#define STAT_FILE_DEFAULT STAT_FILE_DIR "/rcap.stat" +#define STAT_FILE_DEFAULT "/var/run/daemon/rcap.stat" /* * Statistics file header.
--- a/usr/src/cmd/rcap/rcapd/rcapd_main.c Sun Aug 07 07:56:58 2005 -0700 +++ b/usr/src/cmd/rcap/rcapd/rcapd_main.c Sun Aug 07 13:36:09 2005 -0700 @@ -889,14 +889,6 @@ { int fd, res; static char template[LINELEN]; - - /* - * Try to create a directory irrespecitve of whether it is existing or not. - * If it is not there then it will create. Otherwise any way it will fail at - * at mkstemp call below. - */ - - mkdir(STAT_FILE_DIR, 755); /* * Create a temporary file.