]> arthur.barton.de Git - netdata.git/blobdiff - src/log.c
Merge pull request #1672 from ktsaou/master
[netdata.git] / src / log.c
index e96fa1395db7226f7cd13e3cf270e6118943831d..d4c7fa14d904a6ee9007863e03f6ef73418ae0b9 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -26,10 +26,10 @@ void syslog_init(void) {
 int open_log_file(int fd, FILE **fp, const char *filename, int *enabled_syslog) {
     int f;
 
-    if(!filename || !*filename || !strsame(filename, "none"))
+    if(!filename || !*filename || !strcmp(filename, "none"))
         filename = "/dev/null";
 
-    if(!strsame(filename, "syslog")) {
+    if(!strcmp(filename, "syslog")) {
         filename = "/dev/null";
         syslog_init();
         if(enabled_syslog) *enabled_syslog = 1;
@@ -38,15 +38,15 @@ int open_log_file(int fd, FILE **fp, const char *filename, int *enabled_syslog)
 
     // don't do anything if the user is willing
     // to have the standard one
-    if(!strsame(filename, "system")) {
+    if(!strcmp(filename, "system")) {
         if(fd != -1) return fd;
         filename = "stdout";
     }
 
-    if(!strsame(filename, "stdout"))
+    if(!strcmp(filename, "stdout"))
         f = STDOUT_FILENO;
 
-    else if(!strsame(filename, "stderr"))
+    else if(!strcmp(filename, "stderr"))
         f = STDERR_FILENO;
 
     else {