mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-23 19:59:21 +03:00
src/Cedar/Logging: remove unused functions, redundant condition
[src/Cedar/Logging.c:679]: (style) The function 'HubLog' is never used. [src/Cedar/Logging.c:888]: (style) The function 'IPCLog' is never used. [src/Cedar/Logging.c:295]: (style) The function 'PrintEraseFileList' is never used. [src/Cedar/Logging.c:1025]: (style) The function 'SecLog' is never used. [src/Cedar/Logging.c:622]: (style) The function 'ServerLog' is never used. [src/Cedar/Logging.c:2273]: (style) The function 'SetLogDirName' is never used. [src/Cedar/Logging.c:2293]: (style) The function 'SetLogPrefix' is never used. [src/Cedar/Logging.c:997]: (style) The function 'WriteMultiLineLog' is never used. [src/Cedar/Logging.c:918]: (style) The function 'WriteSecurityLog' is never used. [src/Cedar/Logging.c:1018] -> [src/Cedar/Logging.c:1006]: (warning) Either the condition 'src_session!=NULL' is redundant or there is possible null pointer dereference: src_session.
This commit is contained in:
@ -223,8 +223,6 @@ char *StringRecordParseProc(RECORD *rec);
|
||||
bool MakeLogFileName(LOG *g, char *name, UINT size, char *dir, char *prefix, UINT64 tick, UINT switch_type, UINT num, char *old_datestr);
|
||||
void MakeLogFileNameStringFromTick(LOG *g, char *str, UINT size, UINT64 tick, UINT switch_type);
|
||||
void WriteRecordToBuffer(BUF *b, RECORD *r);
|
||||
void SetLogDirName(LOG *g, char *dir);
|
||||
void SetLogPrefix(LOG *g, char *prefix);
|
||||
void SetLogSwitchType(LOG *g, UINT switch_type);
|
||||
bool PacketLog(HUB *hub, SESSION *src_session, SESSION *dest_session, PKT *packet, UINT64 now);
|
||||
char *PacketLogParseProc(RECORD *rec);
|
||||
@ -234,17 +232,12 @@ char *GenCsvLine(TOKEN_LIST *t);
|
||||
void ReplaceForCsv(char *str);
|
||||
char *PortStr(CEDAR *cedar, UINT port, bool udp);
|
||||
char *TcpFlagStr(UCHAR flag);
|
||||
void WriteSecurityLog(HUB *h, char *str);
|
||||
void SecLog(HUB *h, char *fmt, ...);
|
||||
void SiSetDefaultLogSetting(HUB_LOG *g);
|
||||
void DebugLog(CEDAR *c, char *fmt, ...);
|
||||
void HubLog(HUB *h, wchar_t *fmt, ...);
|
||||
void ServerLog(CEDAR *c, wchar_t *fmt, ...);
|
||||
void SLog(CEDAR *c, char *name, ...);
|
||||
void WriteHubLog(HUB *h, wchar_t *str);
|
||||
void HLog(HUB *h, char *name, ...);
|
||||
void NLog(VH *v, char *name, ...);
|
||||
void IPCLog(IPC *ipc, char *name, ...);
|
||||
void PPPLog(PPP_SESSION *p, char *name, ...);
|
||||
void IPsecLog(IKE_SERVER *ike, IKE_CLIENT *c, IKE_SA *ike_sa, IPSECSA *ipsec_sa, char *name, ...);
|
||||
void EtherIPLog(ETHERIP_SERVER *s, char *name, ...);
|
||||
@ -261,13 +254,11 @@ bool CheckEraserDiskFreeSpace(ERASER *e);
|
||||
int CompareEraseFile(void *p1, void *p2);
|
||||
LIST *GenerateEraseFileList(ERASER *e);
|
||||
void FreeEraseFileList(LIST *o);
|
||||
void PrintEraseFileList(LIST *o);
|
||||
void EnumEraseFile(LIST *o, char *dirname);
|
||||
SLOG *NewSysLog(char *hostname, UINT port, IP *ip);
|
||||
void SetSysLog(SLOG *g, char *hostname, UINT port);
|
||||
void FreeSysLog(SLOG *g);
|
||||
void SendSysLog(SLOG *g, wchar_t *str);
|
||||
void WriteMultiLineLog(LOG *g, BUF *b);
|
||||
char *BuildHttpLogStr(HTTPLOG *h);
|
||||
void MakeSafeLogStr(char *str);
|
||||
void AddLogBufToStr(BUF *b, char *name, char *value);
|
||||
|
Reference in New Issue
Block a user