chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44caf41
)
logfile: Remove redundant check for st->f
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 23 Nov 2019 17:51:04 +0000
(17:51 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 13:15:49 +0000
(13:15 +0000)
st->f is now always non-null. If no filename is specified, it is
stderr.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
log.c
patch
|
blob
|
history
diff --git
a/log.c
b/log.c
index 4043ab0c6a0b99fd4220c81b01f84e4d70b0babc..67b43350e127bb86de07f994ee0ba854bfebc07e 100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-330,7
+330,7
@@
static void logfile_vlog(void *sst, int class, const char *message,
pidbuf[0]=0;
}
- if (secnet_is_daemon
&& st->f
) {
+ if (secnet_is_daemon) {
if (class&st->level) {
t=time(NULL);
tm=localtime(&t);