mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[osdep] const in tempname
This commit is contained in:
parent
4245634782
commit
29bbf225b5
@ -1033,7 +1033,9 @@ get_system_str(int xwin)
|
||||
|
||||
/* tempnam() replacement without races */
|
||||
|
||||
int isdirectory(char *path) {
|
||||
static int
|
||||
isdirectory(const char *path)
|
||||
{
|
||||
struct stat ss;
|
||||
if (path == NULL)
|
||||
return 0;
|
||||
@ -1042,7 +1044,9 @@ int isdirectory(char *path) {
|
||||
return S_ISDIR(ss.st_mode);
|
||||
}
|
||||
|
||||
char *tempname(char *dir, const char *pfx, char *suff) {
|
||||
char *
|
||||
tempname(const char *dir, const char *pfx, char *suff)
|
||||
{
|
||||
struct string path;
|
||||
char *ret;
|
||||
int fd;
|
||||
|
@ -52,7 +52,7 @@ int resize_window(int, int, int, int);
|
||||
int can_resize_window(int);
|
||||
int can_open_os_shell(int);
|
||||
void set_highpri(void);
|
||||
char *tempname(char *dir, const char *pfx, char *suff);
|
||||
char *tempname(const char *dir, const char *pfx, char *suff);
|
||||
|
||||
#ifdef USE_OPEN_PREALLOC
|
||||
int open_prealloc(char *, int, int, off_t);
|
||||
|
Loading…
x
Reference in New Issue
Block a user