Skip to content
Snippets Groups Projects
Commit f6cc4a20 authored by shattered's avatar shattered
Browse files

Explicitly convert thousands_sep to char*. Apparently on DragonFly it's

parent 5343b4f5
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@
#include "utility.h"
#include "knowndrives.h"
const char *ataprint_c_cvsid="$Id: ataprint.cpp,v 1.181 2007/05/30 19:29:40 chrfranke Exp $"
const char *ataprint_c_cvsid="$Id: ataprint.cpp,v 1.182 2007/07/20 15:56:42 shattered Exp $"
ATACMDNAMES_H_CVSID ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID KNOWNDRIVES_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID;
// for passing global control variables
......@@ -483,7 +483,7 @@ uint64_t determine_capacity(struct ata_identify_device *drive, char *pstring){
setlocale (LC_ALL, "");
currentlocale=localeconv();
if (*(currentlocale->thousands_sep))
separator=currentlocale->thousands_sep;
separator=(char *)currentlocale->thousands_sep;
#endif // #ifdef HAVE_LOCALE_H
// get #sectors and turn into bytes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment