Skip to content

Commit

Permalink
cleanup prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Feb 28, 2021
1 parent 5a67470 commit 4ca9ec1
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bld/vi/c/dosdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ vi_rc MyGetFileSize( const char *name, long *size )
/*
* IsDirectory - check if a specified path is a directory
*/
bool IsDirectory( char *name )
bool IsDirectory( const char *name )
{
struct _finddata_t fdt;
unsigned rc;
Expand Down
2 changes: 1 addition & 1 deletion bld/vi/c/mapkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void FiniKeyMaps( void )
vi_rc ExecuteBuffer( void )
{
vi_rc rc;
char *data;
const char *data;
key_map scr;

rc = ModificationTest();
Expand Down
4 changes: 2 additions & 2 deletions bld/vi/c/savebuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ vi_rc InsertSavebufAfter2( void )
/*
* GetSavebufString - get a string made up of stuff in a savebuf
*/
vi_rc GetSavebufString( char **data )
vi_rc GetSavebufString( const char **data )
{
#ifdef __WIN__
savebuf clip;
Expand Down Expand Up @@ -316,7 +316,7 @@ vi_rc GetSavebufString( char **data )
if( len > MAX_STR * 4 ) {
rc = ERR_SAVEBUF_TOO_BIG;
} else {
p = *data = MemAlloc( len );
*data = p = MemAlloc( len );
switch( tmp->type ) {
case SAVEBUF_LINE:
strcpy( p, tmp->u.data );
Expand Down
4 changes: 2 additions & 2 deletions bld/vi/h/rtns.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ struct dirent;

vi_rc MyGetFileSize( const char *, long * );
void FormatFileEntry( direct_ent *file, char *res );
bool IsDirectory( char *name );
bool IsDirectory( const char *name );
void GetFileInfo( direct_ent *tmp, struct dirent *dire, const char *path );

/* dotmode.c */
Expand Down Expand Up @@ -701,7 +701,7 @@ void AddFcbsToSavebuf( fcb_list *, bool );
vi_rc SwitchSavebuf( void );
vi_rc DoSavebufNumber( void );
vi_rc SetSavebufNumber( const char * );
vi_rc GetSavebufString( char ** );
vi_rc GetSavebufString( const char ** );
bool IsEmptySavebuf( char ch );
void FiniSavebufs( void );

Expand Down
2 changes: 1 addition & 1 deletion bld/vi/noui/unixdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ vi_rc MyGetFileSize( const char *inname, long *size )
/*
* IsDirectory - check if a specified path is a directory
*/
bool IsDirectory( char *name )
bool IsDirectory( const char *name )
{
struct stat sb;

Expand Down
2 changes: 1 addition & 1 deletion bld/vi/qnx/qnxdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int MyGetFileSize( const char *inname, long *size )
/*
* IsDirectory - check if a specified path is a directory
*/
bool IsDirectory( char *name )
bool IsDirectory( const char *name )
{
struct stat sb;

Expand Down
2 changes: 1 addition & 1 deletion bld/vi/unix/unixdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ vi_rc MyGetFileSize( const char *inname, long *size )
/*
* IsDirectory - check if a specified path is a directory
*/
bool IsDirectory( char *name )
bool IsDirectory( const char *name )
{
struct stat sb;

Expand Down

0 comments on commit 4ca9ec1

Please sign in to comment.