Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit cf0dc06d authored by deuce's avatar deuce

More const goodness.

parent 34f18ba6
...@@ -1001,7 +1001,7 @@ static FILE *ODEmulateFindCompatFile(const char *pszBaseName, INT *pnLevel) ...@@ -1001,7 +1001,7 @@ static FILE *ODEmulateFindCompatFile(const char *pszBaseName, INT *pnLevel)
* *
* Return: void * Return: void
*/ */
ODAPIDEF void ODCALL od_disp_emu(char *pszToDisplay, BOOL bRemoteEcho) ODAPIDEF void ODCALL od_disp_emu(const char *pszToDisplay, BOOL bRemoteEcho)
{ {
BOOL bTranslateRemote; BOOL bTranslateRemote;
......
...@@ -108,7 +108,7 @@ ODAPIDEF void ODCALL ODMPSEnable(void) ...@@ -108,7 +108,7 @@ ODAPIDEF void ODCALL ODMPSEnable(void)
* *
* Return: TRUE on success, or FALSE on failure. * Return: TRUE on success, or FALSE on failure.
*/ */
ODAPIDEF BOOL ODCALL od_set_personality(char *pszName) ODAPIDEF BOOL ODCALL od_set_personality(const char *pszName)
{ {
#ifdef OD_TEXTMODE #ifdef OD_TEXTMODE
BYTE btNewPersonality; BYTE btNewPersonality;
...@@ -213,7 +213,7 @@ ODAPIDEF BOOL ODCALL od_set_personality(char *pszName) ...@@ -213,7 +213,7 @@ ODAPIDEF BOOL ODCALL od_set_personality(char *pszName)
* *
* Return: TRUE on success or FALSE on failure. * Return: TRUE on success or FALSE on failure.
*/ */
ODAPIDEF BOOL ODCALL od_add_personality(char *pszName, BYTE btOutputTop, ODAPIDEF BOOL ODCALL od_add_personality(const char *pszName, BYTE btOutputTop,
BYTE btOutputBottom, OD_PERSONALITY_PROC *pfPerFunc) BYTE btOutputBottom, OD_PERSONALITY_PROC *pfPerFunc)
{ {
/* Log function entry if running in trace mode */ /* Log function entry if running in trace mode */
......
...@@ -172,7 +172,7 @@ int _spawnvpe(int nModeFlag, char *pszPath, char *papszArgs[], ...@@ -172,7 +172,7 @@ int _spawnvpe(int nModeFlag, char *pszPath, char *papszArgs[],
* *
* Return: TRUE on success, or FALSE on failure. * Return: TRUE on success, or FALSE on failure.
*/ */
ODAPIDEF BOOL ODCALL od_spawn(char *pszCommandLine) ODAPIDEF BOOL ODCALL od_spawn(const char *pszCommandLine)
{ {
#ifdef ODPLAT_DOS #ifdef ODPLAT_DOS
char *apszArgs[4]; char *apszArgs[4];
......
...@@ -948,7 +948,7 @@ od_control; ...@@ -948,7 +948,7 @@ od_control;
* od_sleep() - Yield to other processes * od_sleep() - Yield to other processes
* od_control_get() - Returns a pointer to the od_control structure. * od_control_get() - Returns a pointer to the od_control structure.
*/ */
ODAPIDEF BOOL ODCALL od_add_personality(char *pszName, BYTE btOutputTop, ODAPIDEF BOOL ODCALL od_add_personality(const char *pszName, BYTE btOutputTop,
BYTE btOutputBottom, BYTE btOutputBottom,
OD_PERSONALITY_PROC *pfPerFunc); OD_PERSONALITY_PROC *pfPerFunc);
ODAPIDEF void ODCALL od_autodetect(INT nFlags); ODAPIDEF void ODCALL od_autodetect(INT nFlags);
...@@ -960,7 +960,7 @@ ODAPIDEF void ODCALL od_clr_scr(void); ...@@ -960,7 +960,7 @@ ODAPIDEF void ODCALL od_clr_scr(void);
ODAPIDEF BYTE ODCALL od_color_config(char *pszColorDesc); ODAPIDEF BYTE ODCALL od_color_config(char *pszColorDesc);
ODAPIDEF tODControl * ODCALL od_control_get(void); ODAPIDEF tODControl * ODCALL od_control_get(void);
ODAPIDEF void ODCALL od_disp(char *pachBuffer, INT nSize, BOOL bLocalEcho); ODAPIDEF void ODCALL od_disp(char *pachBuffer, INT nSize, BOOL bLocalEcho);
ODAPIDEF void ODCALL od_disp_emu(char *pszToDisplay, BOOL bRemoteEcho); ODAPIDEF void ODCALL od_disp_emu(const char *pszToDisplay, BOOL bRemoteEcho);
ODAPIDEF void ODCALL od_disp_str(const char *pszToDisplay); ODAPIDEF void ODCALL od_disp_str(const char *pszToDisplay);
ODAPIDEF BOOL ODCALL od_draw_box(BYTE btLeft, BYTE btTop, BYTE btRight, ODAPIDEF BOOL ODCALL od_draw_box(BYTE btLeft, BYTE btTop, BYTE btRight,
BYTE btBottom); BYTE btBottom);
...@@ -1011,10 +1011,10 @@ ODAPIDEF void ODCALL od_set_attrib(INT nColour); ...@@ -1011,10 +1011,10 @@ ODAPIDEF void ODCALL od_set_attrib(INT nColour);
ODAPIDEF void ODCALL od_set_color(INT nForeground, INT nBackground); ODAPIDEF void ODCALL od_set_color(INT nForeground, INT nBackground);
ODAPIDEF void ODCALL od_set_cursor(INT nRow, INT nColumn); ODAPIDEF void ODCALL od_set_cursor(INT nRow, INT nColumn);
ODAPIDEF void ODCALL od_set_dtr(BOOL bHigh); ODAPIDEF void ODCALL od_set_dtr(BOOL bHigh);
ODAPIDEF BOOL ODCALL od_set_personality(char *pszName); ODAPIDEF BOOL ODCALL od_set_personality(const char *pszName);
ODAPIDEF void ODCALL od_set_statusline(INT nSetting); ODAPIDEF void ODCALL od_set_statusline(INT nSetting);
ODAPIDEF void ODCALL od_sleep(tODMilliSec Milliseconds); ODAPIDEF void ODCALL od_sleep(tODMilliSec Milliseconds);
ODAPIDEF BOOL ODCALL od_spawn(char *pszCommandLine); ODAPIDEF BOOL ODCALL od_spawn(const char *pszCommandLine);
ODAPIDEF INT16 ODCALL od_spawnvpe(INT16 nModeFlag, char *pszPath, ODAPIDEF INT16 ODCALL od_spawnvpe(INT16 nModeFlag, char *pszPath,
char *papszArg[], char *papszEnv[]); char *papszArg[], char *papszEnv[]);
ODAPIDEF void * ODCALL od_window_create(INT nLeft, INT nTop, INT nRight, ODAPIDEF void * ODCALL od_window_create(INT nLeft, INT nTop, INT nRight,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment