X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=os_generic.cpp;h=de39f551bc20a3075e3bebcb52facc838cadbf60;hb=413ace18d106fef69fa96d53831eebd600c9f157;hp=d733147e22eb35e763b82c4a4ab972336c9dd821;hpb=4ab2b837152e212a07b80fe5650f0e75e7db30e8;p=mirror_smartmontools-debian.git diff --git a/os_generic.cpp b/os_generic.cpp index d733147..de39f55 100644 --- a/os_generic.cpp +++ b/os_generic.cpp @@ -1,7 +1,7 @@ /* - * os_generic.c + * os_generic.cpp * - * Home page of code is: http://smartmontools.sourceforge.net + * Home page of code is: http://www.smartmontools.org * * Copyright (C) YEAR YOUR_NAME * Copyright (C) 2003-8 Bruce Allen @@ -13,8 +13,8 @@ * any later version. * * You should have received a copy of the GNU General Public License - * (for example COPYING); if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * (for example COPYING); If not, see . + * */ @@ -71,6 +71,7 @@ // These are needed to define prototypes and structures for the // functions defined below +#include "int64.h" #include "atacmds.h" #include "utility.h" @@ -82,8 +83,8 @@ // should have one *_H_CVSID macro appearing below for each file // appearing with #include "*.h" above. Please list these (below) in // alphabetic/dictionary order. -const char *os_XXXX_c_cvsid="$Id: os_generic.cpp 2915 2009-09-18 21:17:37Z chrfranke $" \ -ATACMDS_H_CVSID CONFIG_H_CVSID OS_GENERIC_H_CVSID UTILITY_H_CVSID; +const char * os_XXXX_cpp_cvsid="$Id: os_generic.cpp 4120 2015-08-27 16:12:21Z samm2 $" + ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_GENERIC_H_CVSID UTILITY_H_CVSID; // This is here to prevent compiler warnings for unused arguments of // functions. @@ -106,8 +107,6 @@ static void unsupported(){ if (!warninggiven) { char *osname; - extern unsigned char debugmode; - unsigned char savedebugmode=debugmode; #ifdef HAVE_UNAME struct utsname ostype; @@ -117,14 +116,12 @@ static void unsupported(){ osname="host's"; #endif - debugmode=1; pout("\n" "############################################################################\n" "WARNING: smartmontools has not been ported to the %s Operating System.\n" "Please see the files os_generic.cpp and os_generic.h for porting instructions.\n" "############################################################################\n\n", osname); - debugmode=savedebugmode; warninggiven=1; }