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

More constification.

parent fb6e80f3
......@@ -1368,7 +1368,7 @@ ODAPIDEF void ODCALL od_set_dtr(BOOL bHigh)
*
* Return: void
*/
ODAPIDEF char ODCALL od_get_answer(char *pszOptions)
ODAPIDEF char ODCALL od_get_answer(const char *pszOptions)
{
char *pchPossibleOption;
char chPressed;
......
......@@ -78,7 +78,7 @@
/* Local helper function prototypes. */
static void ODEmulateFromBuffer(char *pszBuffer, BOOL bRemoteEcho);
static FILE *ODEmulateFindCompatFile(char *pszBaseName, INT *pnLevel);
static FILE *ODEmulateFindCompatFile(const char *pszBaseName, INT *pnLevel);
static void ODEmulateFillArea(BYTE btLeft, BYTE btTop, BYTE btRight,
BYTE btBottom, char chToFillWith);
......@@ -223,7 +223,7 @@ ODAPIDEF char ODCALL od_hotkey_menu(char *pszFileName, char *pszHotKeys,
*
* Return: TRUE on success, or FALSE on failure.
*/
ODAPIDEF BOOL ODCALL od_send_file(char *pszFileName)
ODAPIDEF BOOL ODCALL od_send_file(const char *pszFileName)
{
FILE *pfRemoteFile;
FILE *pfLocalFile = NULL;
......@@ -938,7 +938,7 @@ end_transmission:
* Return: A pointer to a now-open file of the required type, or NULL if
* no match was found.
*/
static FILE *ODEmulateFindCompatFile(char *pszBaseName, INT *pnLevel)
static FILE *ODEmulateFindCompatFile(const char *pszBaseName, INT *pnLevel)
{
FILE *pfCompatibleFile;
......
......@@ -969,7 +969,7 @@ ODAPIDEF WORD ODCALL od_edit_str(char *pszInput, char *pszFormat, INT nRow,
BYTE btHighlightColour, char chBlank,
WORD nFlags);
ODAPIDEF void ODCALL od_exit(INT nErrorLevel, BOOL bTermCall);
ODAPIDEF char ODCALL od_get_answer(char *pszOptions);
ODAPIDEF char ODCALL od_get_answer(const char *pszOptions);
ODAPIDEF void ODCALL od_get_cursor(INT *pnRow, INT *pnColumn);
ODAPIDEF BOOL ODCALL od_get_input(tODInputEvent *pInputEvent,
tODMilliSec TimeToWait, WORD wFlags);
......@@ -1005,7 +1005,7 @@ ODAPIDEF BOOL ODCALL od_restore_screen(void *pBuffer);
ODAPIDEF BOOL ODCALL od_save_screen(void *pBuffer);
ODAPIDEF BOOL ODCALL od_scroll(INT nLeft, INT nTop, INT nRight,
INT nBottom, INT nDistance, WORD nFlags);
ODAPIDEF BOOL ODCALL od_send_file(char *pszFileName);
ODAPIDEF BOOL ODCALL od_send_file(const char *pszFileName);
ODAPIDEF BOOL ODCALL od_send_file_section(char *pszFileName, char *pszSectionName);
ODAPIDEF void ODCALL od_set_attrib(INT nColour);
ODAPIDEF void ODCALL od_set_color(INT nForeground, INT nBackground);
......
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