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 9aa2455e authored by deuce's avatar deuce

More const

parent ca07d6c3
......@@ -851,7 +851,7 @@ ODAPIDEF void ODCALL od_disp(char *pachBuffer, INT nSize, BOOL bLocalEcho)
*
* Return: void
*/
ODAPIDEF void ODCALL od_disp_str(char *pszToDisplay)
ODAPIDEF void ODCALL od_disp_str(const char *pszToDisplay)
{
/* Log function entry if running in trace mode */
TRACE(TRACE_API, "od_disp_str()");
......
......@@ -1854,7 +1854,7 @@ BOOL ODScrnPutText(BYTE btLeft, BYTE btTop, BYTE btRight, BYTE btBottom,
*
* Return: void.
*/
void ODScrnDisplayString(char *pszString)
void ODScrnDisplayString(const char *pszString)
{
ODScrnDisplayBuffer(pszString, strlen(pszString));
}
......@@ -1875,9 +1875,9 @@ void ODScrnDisplayString(char *pszString)
*
* Return: void.
*/
void ODScrnDisplayBuffer(char *pBuffer, INT nCharsToDisplay)
void ODScrnDisplayBuffer(const char *pBuffer, INT nCharsToDisplay)
{
char *pchCurrentChar = pBuffer;
const char *pchCurrentChar = pBuffer;
INT nCharsLeft = nCharsToDisplay;
BYTE ODFAR *pDest;
BYTE btLeftColumn;
......
......@@ -62,8 +62,8 @@ void ODScrnShutdown(void);
/* Basic text output functions. */
void ODScrnDisplayChar(unsigned char chToOutput);
void ODScrnDisplayBuffer(char *pBuffer, INT nCharsToDisplay);
void ODScrnDisplayString(char *pszString);
void ODScrnDisplayBuffer(const char *pBuffer, INT nCharsToDisplay);
void ODScrnDisplayString(const char *pszString);
INT ODScrnPrintf(char *pszFormat, ...);
/* Functions for manipulating rectangular areas of the screen buffer. */
......
......@@ -720,7 +720,7 @@ typedef struct
char od_cfg_text[48][33];
char od_cfg_lines[25][33];
OD_COMPONENT *od_config_file;
char * od_config_filename;
const char * od_config_filename;
void (*od_config_function)(char *keyword, char *options);
char od_color_char;
char od_color_delimiter;
......@@ -961,7 +961,7 @@ ODAPIDEF BYTE ODCALL od_color_config(char *pszColorDesc);
ODAPIDEF tODControl * ODCALL od_control_get(void);
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_str(char *pszToDisplay);
ODAPIDEF void ODCALL od_disp_str(const char *pszToDisplay);
ODAPIDEF BOOL ODCALL od_draw_box(BYTE btLeft, BYTE btTop, BYTE btRight,
BYTE btBottom);
ODAPIDEF WORD ODCALL od_edit_str(char *pszInput, char *pszFormat, INT nRow,
......
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