File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ extern char** environ;
109
109
static char windows_error_details [64 ];
110
110
static char ps_buffer [MAX_PATH ];
111
111
static const size_t ps_buffer_size = MAX_PATH ;
112
- #elif PS_USE_CLOBBER_ARGV
112
+ #elif defined( PS_USE_CLOBBER_ARGV )
113
113
static char * ps_buffer ; /* will point to argv area */
114
114
static size_t ps_buffer_size ; /* space determined at run time */
115
115
#else
@@ -372,7 +372,7 @@ int set_ps_title(const char* title)
372
372
* length into *displen.
373
373
* The return code indicates the error.
374
374
*/
375
- int get_ps_title (size_t * displen , const char * * string )
375
+ int get_ps_title (int * displen , const char * * string )
376
376
{
377
377
int rc = is_ps_title_available ();
378
378
if (rc != PS_TITLE_SUCCESS )
@@ -382,7 +382,7 @@ int get_ps_title(size_t *displen, const char** string)
382
382
if (!(ps_buffer_cur_len = GetConsoleTitle (ps_buffer , ps_buffer_size )))
383
383
return PS_TITLE_WINDOWS_ERROR ;
384
384
#endif
385
- * displen = ps_buffer_cur_len ;
385
+ * displen = ( int ) ps_buffer_cur_len ;
386
386
* string = ps_buffer ;
387
387
return PS_TITLE_SUCCESS ;
388
388
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ extern char** save_ps_args(int argc, char** argv);
31
31
32
32
extern int set_ps_title (const char * new_str );
33
33
34
- extern int get_ps_title (size_t * displen , const char * * string );
34
+ extern int get_ps_title (int * displen , const char * * string );
35
35
36
36
extern const char * ps_title_errno (int rc );
37
37
You can’t perform that action at this time.
0 commit comments