summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-05-24 14:58:51 +0300
committerToomas Soome <tsoome@me.com>2021-02-17 23:20:45 +0200
commitb0d8599cdab985a41de495bf1f4f1bb56cdbef3c (patch)
tree59b5020e8a255d57abc414e049919e1292d38395 /usr/src
parentb2d74f536e6828d7c394fb09b412bf35af42299d (diff)
downloadillumos-joyent-b0d8599cdab985a41de495bf1f4f1bb56cdbef3c.tar.gz
13540 ndmpd: multiply-defined symbols
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/ndmpd/include/tlm.h2
-rw-r--r--usr/src/cmd/ndmpd/ndmp/ndmpd_log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/ndmpd/include/tlm.h b/usr/src/cmd/ndmpd/include/tlm.h
index 8c667a334b..e5e045d89a 100644
--- a/usr/src/cmd/ndmpd/include/tlm.h
+++ b/usr/src/cmd/ndmpd/include/tlm.h
@@ -437,7 +437,7 @@ typedef struct tm_ops {
#define LONGNAME_PREFIX "././_LoNg_NaMe_"
extern void ndmp_log(ulong_t, char *, char *, ...);
-char ndmp_log_info[256];
+extern char ndmp_log_info[256];
#define NDMP_LOG(p, ...) { \
(void) snprintf(ndmp_log_info, \
sizeof (ndmp_log_info), \
diff --git a/usr/src/cmd/ndmpd/ndmp/ndmpd_log.c b/usr/src/cmd/ndmpd/ndmp/ndmpd_log.c
index 46c0d2d331..73ecf1eae1 100644
--- a/usr/src/cmd/ndmpd/ndmp/ndmpd_log.c
+++ b/usr/src/cmd/ndmpd/ndmp/ndmpd_log.c
@@ -65,12 +65,12 @@
#define LOG_FILE_SIZE 4 * 1024 * 1024
#define LOG_SIZE_INT 256
+char ndmp_log_info[256];
static boolean_t debug = B_FALSE;
static boolean_t log_to_stderr = B_FALSE;
static FILE *logfp;
static int ndmp_synclog = 1;
-
/*
* Since we use buffered file I/O for log file, the thread may lose CPU.
* At this time, another thread can destroy the contents of the buffer