From 947c931ecfca1437ab5d8022efaff5ca59c81a41 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 22 Nov 2006 14:48:30 +0000 Subject: [PATCH] Update copyright + fix a few Win32 warnings git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3686 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/console/console.c | 2 ++ bacula/src/stored/dev.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bacula/src/console/console.c b/bacula/src/console/console.c index 046b28d8b1..1bef020596 100644 --- a/bacula/src/console/console.c +++ b/bacula/src/console/console.c @@ -714,6 +714,7 @@ get_cmd(FILE *input, const char *prompt, BSOCK *sock, int sec) #else /* no readline, do it ourselves */ +#if !defined(HAVE_WIN32) static bool bisatty(int fd) { if (no_conio) { @@ -721,6 +722,7 @@ static bool bisatty(int fd) } return isatty(fd); } +#endif /* * Returns: 1 if data available diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index e6d9563e82..459a9caa94 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -337,8 +337,10 @@ void DEVICE::open_tape_device(DCR *dcr, int omode) { file_size = 0; int timeout = max_open_wait; +#if !defined(HAVE_WIN32) struct mtop mt_com; utime_t start_time = time(NULL); +#endif Dmsg0(29, "Open dev: device is tape\n"); -- 2.39.5