diff options
Diffstat (limited to 'src/libs')
| -rw-r--r-- | src/libs/Makefile.am | 20 | ||||
| -rw-r--r-- | src/libs/zbxcommon/Makefile.am | 2 | ||||
| -rw-r--r-- | src/libs/zbxdbhigh/db.c | 10 | ||||
| -rw-r--r-- | src/libs/zbxsysinfo/Makefile.am | 35 |
4 files changed, 45 insertions, 22 deletions
diff --git a/src/libs/Makefile.am b/src/libs/Makefile.am index 37b5530b..9c76675b 100644 --- a/src/libs/Makefile.am +++ b/src/libs/Makefile.am @@ -1,12 +1,24 @@ ## Process this file with automake to produce Makefile.in -SERVER_DIRS = zbxdbhigh zbxemail zbxsms zbxcomms +DIST_SUBDIRS = \ + zbxdbhigh \ + zbxemail \ + zbxsms \ + zbxcomms \ + zbxcrypto \ + zbxcommon \ + zbxlog \ + zbxnet \ + zbxnix \ + zbxconf \ + zbxsysinfo \ + zbxplugin \ + zbxsys if SERVER -SERVER_SUBDIRS = $(SERVER_DIRS) -else -EXTRA_SUBDIRS = $(SERVER_DIRS) +SERVER_SUBDIRS = zbxdbhigh zbxemail zbxsms zbxcomms endif SUBDIRS = zbxcrypto zbxcommon zbxlog zbxnet zbxnix zbxconf zbxsysinfo zbxplugin zbxsys $(SERVER_SUBDIRS) +EXTRA_DISTR = zbxwin32 diff --git a/src/libs/zbxcommon/Makefile.am b/src/libs/zbxcommon/Makefile.am index e9efd230..65d2c90d 100644 --- a/src/libs/zbxcommon/Makefile.am +++ b/src/libs/zbxcommon/Makefile.am @@ -11,4 +11,4 @@ libzbxcommon_a_SOURCES = \ zbxgetopt.c \ alias.c -EXTRA_DIR = gnuregex.c +EXTRA_DIST = gnuregex.c diff --git a/src/libs/zbxdbhigh/db.c b/src/libs/zbxdbhigh/db.c index be5dc8e0..d174d23e 100644 --- a/src/libs/zbxdbhigh/db.c +++ b/src/libs/zbxdbhigh/db.c @@ -358,12 +358,12 @@ int DBexecute(const char *fmt, ...) } lbl_exec: - if(SQLITE_OK != (sql_ret = sqlite3_exec(sqlite, sql, NULL, 0, &error))) + if(SQLITE_OK != (ret = sqlite3_exec(sqlite, sql, NULL, 0, &error))) { - if(sql_ret == SQLITE_BUSY) goto lbl_exec; /* attention deadlock!!! */ + if(ret == SQLITE_BUSY) goto lbl_exec; /* attention deadlock!!! */ zabbix_log( LOG_LEVEL_ERR, "Query::%s",sql); - zabbix_log(LOG_LEVEL_ERR, "Query failed [%i]:%s", sql_ret, error); + zabbix_log(LOG_LEVEL_ERR, "Query failed [%i]:%s", ret, error); sqlite3_free(error); if(!sqlite_transaction_started) { @@ -523,8 +523,8 @@ DB_RESULT DBselect(const char *fmt, ...) sqlo_stmt_handle_t sth; #endif #ifdef HAVE_SQLITE3 - int sql_ret = SUCCEED; - char *error=0; + int ret = FAIL; + char *error=NULL; #endif gettimeofday(&tv, NULL); diff --git a/src/libs/zbxsysinfo/Makefile.am b/src/libs/zbxsysinfo/Makefile.am index 76c73a91..8fb3d66c 100644 --- a/src/libs/zbxsysinfo/Makefile.am +++ b/src/libs/zbxsysinfo/Makefile.am @@ -12,16 +12,27 @@ libzbxsysinfo_a_SOURCES = \ common/http.c \ @ARCH@/@ARCH@.c -EXTRA_SUBDIRS = \ - aix aix/aix.c \ - common \ - freebsd freebsd/freebsd.c \ - hpux hpux/hpux.c \ - linux linux/linux.c \ - netbsd netbsd/netbsd.c \ - openbsd openbsd/openbsd.c \ - osf osf/osf.c \ - osx osx/osx.c \ - solaris solaris/solaris.c \ - unknown unknown/unknown.c \ +DIST_SUBDIRS = \ + aix \ + freebsd \ + hpux \ + linux \ + netbsd \ + openbsd \ + osf \ + osx \ + solaris \ + unknown + +EXTRA_DIST = \ + aix/aix.c \ + freebsd/freebsd.c \ + hpux/hpux.c \ + linux/linux.c \ + netbsd/netbsd.c \ + openbsd/openbsd.c \ + osf/osf.c \ + osx/osx.c \ + solaris/solaris.c \ + unknown/unknown.c \ win32 |
