mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-09-12 22:45:02 -04:00
most of the serious unused vars are removed, so i'll silence those now... and maaaaaany other fixes
This commit is contained in:
@@ -44,13 +44,7 @@ std::string soegethostname()
|
||||
char res[NAME_SIZE];
|
||||
memset(res, 0, NAME_SIZE);
|
||||
std::string retVal;
|
||||
int error = gethostname(res, NAME_SIZE-1);
|
||||
|
||||
int errdetail;
|
||||
if(error !=0)
|
||||
{
|
||||
errdetail = errno;
|
||||
}
|
||||
retVal = res;
|
||||
return retVal;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ template<typename T, typename P> PriorityQueue<T, P>::PriorityQueue(int queueSiz
|
||||
mQueueEnd = 0;
|
||||
mQueueSize = queueSize;
|
||||
mQueue = new QueueEntry[mQueueSize];
|
||||
memset(mQueue, 0, sizeof(mQueue));
|
||||
memset(mQueue, 0, mQueueSize);
|
||||
}
|
||||
|
||||
template<typename T, typename P> PriorityQueue<T, P>::~PriorityQueue()
|
||||
|
||||
@@ -264,7 +264,7 @@ namespace soe
|
||||
{
|
||||
int wchar_length=0; //number of utf-8 characters
|
||||
int code_size; //number of bytes each wchar
|
||||
int cur_bytes_count = 0;
|
||||
unsigned cur_bytes_count = 0;
|
||||
unsigned char byte;
|
||||
char *pout = output;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user