Cygwin: minor cleanups
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
b6694df619
commit
7f60199032
|
@ -2610,14 +2610,13 @@ class fhandler_procnet: public fhandler_proc
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
public:
|
public:
|
||||||
fhandler_procnet ();
|
fhandler_procnet ();
|
||||||
|
fhandler_procnet (void *) {}
|
||||||
virtual_ftype_t exists();
|
virtual_ftype_t exists();
|
||||||
int __reg3 readdir (DIR *, dirent *);
|
int __reg3 readdir (DIR *, dirent *);
|
||||||
int open (int flags, mode_t mode = 0);
|
int open (int flags, mode_t mode = 0);
|
||||||
int __reg2 fstat (struct stat *buf);
|
int __reg2 fstat (struct stat *buf);
|
||||||
bool fill_filebuf ();
|
bool fill_filebuf ();
|
||||||
|
|
||||||
fhandler_procnet (void *) {}
|
|
||||||
|
|
||||||
void copyto (fhandler_base *x)
|
void copyto (fhandler_base *x)
|
||||||
{
|
{
|
||||||
x->pc.free_strings ();
|
x->pc.free_strings ();
|
||||||
|
|
|
@ -61,7 +61,7 @@ get (const int fd)
|
||||||
cygheap_fdget cfd (fd);
|
cygheap_fdget cfd (fd);
|
||||||
|
|
||||||
if (cfd < 0)
|
if (cfd < 0)
|
||||||
return 0;
|
return NULL;
|
||||||
|
|
||||||
fhandler_socket *const fh = cfd->is_socket ();
|
fhandler_socket *const fh = cfd->is_socket ();
|
||||||
|
|
||||||
|
|
|
@ -635,7 +635,8 @@ sigwait_common (const sigset_t *set, siginfo_t *info, PLARGE_INTEGER waittime)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
__except (EFAULT) {
|
__except (EFAULT)
|
||||||
|
{
|
||||||
res = -1;
|
res = -1;
|
||||||
}
|
}
|
||||||
__endtry
|
__endtry
|
||||||
|
|
Loading…
Reference in New Issue