A few assorted cleanups.

This commit is contained in:
2025-08-12 02:52:51 -04:00
parent b4600db393
commit a02ed91d3b
4 changed files with 31 additions and 35 deletions

View File

@ -39,6 +39,8 @@
#include "../dpip/dpip.h"
using namespace std::literals::string_literals;
#define DPI_EXT (".dpi" EXEEXT)
#define QUEUE 5
@ -52,10 +54,8 @@ char *SharedKey = NULL;
*/
void cleanup(void)
{
char *fname;
fname = dStrconcat(dGethomedir(), "/", dotDILLO_DPID_COMM_KEYS, NULL);
unlink(fname);
dFree(fname);
std::string fname = dGethomedir() + "/"s + dotDILLO_DPID_COMM_KEYS;
unlink(fname.c_str());
}
/*! Free memory used to describe