Respond to more g++ warnings relating to initializing structures.
This commit is contained in:
parent
237e6cfa82
commit
01cf5d0f5d
|
@ -1,3 +1,7 @@
|
|||
Tue Feb 22 23:06:01 2000 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
Respond to more g++ warnings relating to initializing structures.
|
||||
|
||||
Mon Feb 21 18:36:37 2000 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* fhandler.cc (set_inheritance): Revert previous patch which got rid of
|
||||
|
|
|
@ -23,7 +23,7 @@ typedef struct
|
|||
const char *name;
|
||||
} thread_info;
|
||||
|
||||
static NO_COPY thread_info threads[32] = {{0}}; // increase as necessary
|
||||
static NO_COPY thread_info threads[32] = {{0, NULL}}; // increase as necessary
|
||||
#define NTHREADS (sizeof(threads) / sizeof(threads[0]))
|
||||
|
||||
void
|
||||
|
@ -173,10 +173,10 @@ typedef struct _h
|
|||
struct _h *next;
|
||||
} handle_list;
|
||||
|
||||
static NO_COPY handle_list starth = {0};
|
||||
static NO_COPY handle_list starth = {0, NULL, NULL, NULL, 0, NULL};
|
||||
static NO_COPY handle_list *endh = NULL;
|
||||
|
||||
static handle_list NO_COPY freeh[1000] = {{0}};
|
||||
static handle_list NO_COPY freeh[1000] = {{0, NULL, NULL, NULL, 0, NULL}};
|
||||
#define NFREEH (sizeof (freeh) / sizeof (freeh[0]))
|
||||
|
||||
static muto NO_COPY *debug_lock = NULL;
|
||||
|
|
|
@ -365,9 +365,9 @@ try_to_debug ()
|
|||
|
||||
BOOL dbg;
|
||||
|
||||
PROCESS_INFORMATION pi = {0};
|
||||
PROCESS_INFORMATION pi = {NULL, 0, 0, 0};
|
||||
|
||||
STARTUPINFO si = {0};
|
||||
STARTUPINFO si = {0, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL};
|
||||
si.lpReserved = NULL;
|
||||
si.lpDesktop = NULL;
|
||||
si.dwFlags = 0;
|
||||
|
|
|
@ -245,7 +245,7 @@ fork ()
|
|||
HANDLE subproc_ready, forker_finished;
|
||||
void *stack_here;
|
||||
int x;
|
||||
PROCESS_INFORMATION pi = {0};
|
||||
PROCESS_INFORMATION pi = {0, NULL, 0, 0};
|
||||
|
||||
MALLOC_CHECK;
|
||||
|
||||
|
@ -332,7 +332,7 @@ fork ()
|
|||
for the forkee. */
|
||||
strcpy(child->progname, myself->progname);
|
||||
|
||||
STARTUPINFO si = {0};
|
||||
STARTUPINFO si = {0, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL};
|
||||
|
||||
si.cb = sizeof (STARTUPINFO);
|
||||
si.lpReserved2 = (LPBYTE)&ch;
|
||||
|
|
|
@ -225,7 +225,7 @@ static struct tl errmap[] =
|
|||
{WSAEREMOTE, "WSAEREMOTE", EREMOTE},
|
||||
{WSAEINVAL, "WSAEINVAL", EINVAL},
|
||||
{WSAEFAULT, "WSAEFAULT", EFAULT},
|
||||
{0}
|
||||
{0, NULL, 0}
|
||||
};
|
||||
|
||||
/* Cygwin internal */
|
||||
|
@ -256,7 +256,7 @@ static struct tl host_errmap[] =
|
|||
{WSATRY_AGAIN, "WSATRY_AGAIN", TRY_AGAIN},
|
||||
{WSANO_RECOVERY, "WSANO_RECOVERY", NO_RECOVERY},
|
||||
{WSANO_DATA, "WSANO_DATA", NO_DATA},
|
||||
{0}
|
||||
{0, NULL, 0}
|
||||
};
|
||||
|
||||
/* Cygwin internal */
|
||||
|
|
|
@ -1038,7 +1038,7 @@ static int
|
|||
peek_socket (select_record *me, int)
|
||||
{
|
||||
winsock_fd_set ws_readfds, ws_writefds, ws_exceptfds;
|
||||
struct timeval tv = {0};
|
||||
struct timeval tv = {0, 0};
|
||||
WINSOCK_FD_ZERO (&ws_readfds);
|
||||
WINSOCK_FD_ZERO (&ws_writefds);
|
||||
WINSOCK_FD_ZERO (&ws_exceptfds);
|
||||
|
|
|
@ -97,7 +97,7 @@ Static pinfo *zombies[PSIZE] = {NULL}; // All my deceased children info
|
|||
Static int nchildren = 0; // Number of active children
|
||||
Static int nzombies = 0; // Number of deceased children
|
||||
|
||||
Static waitq waitq_head = {0}; // Start of queue for wait'ing threads
|
||||
Static waitq waitq_head = {0, 0, 0, 0, 0, 0, 0};// Start of queue for wait'ing threads
|
||||
Static waitq waitq_main; // Storage for main thread
|
||||
|
||||
DWORD NO_COPY maintid = 0; // ID of the main thread
|
||||
|
|
|
@ -438,9 +438,8 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
|
|||
MALLOC_CHECK;
|
||||
|
||||
skip_arg_parsing:
|
||||
PROCESS_INFORMATION pi = {0};
|
||||
|
||||
STARTUPINFO si = {0};
|
||||
PROCESS_INFORMATION pi = {NULL, 0, 0, 0};
|
||||
STARTUPINFO si = {0, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL};
|
||||
si.lpReserved = NULL;
|
||||
si.lpDesktop = NULL;
|
||||
si.dwFlags = STARTF_USESTDHANDLES;
|
||||
|
|
|
@ -1627,7 +1627,7 @@ mknod ()
|
|||
/* FIXME: unimplemented! */
|
||||
extern "C"
|
||||
int
|
||||
setgid (gid_t a)
|
||||
setgid (gid_t)
|
||||
{
|
||||
set_errno (ENOSYS);
|
||||
return 0;
|
||||
|
@ -1637,7 +1637,7 @@ setgid (gid_t a)
|
|||
/* FIXME: unimplemented! */
|
||||
extern "C"
|
||||
int
|
||||
setuid (uid_t b)
|
||||
setuid (uid_t)
|
||||
{
|
||||
set_errno (ENOSYS);
|
||||
return 0;
|
||||
|
@ -1646,7 +1646,7 @@ setuid (uid_t b)
|
|||
/* seteuid: standards? */
|
||||
extern "C"
|
||||
int
|
||||
seteuid (uid_t c)
|
||||
seteuid (uid_t)
|
||||
{
|
||||
set_errno (ENOSYS);
|
||||
return 0;
|
||||
|
@ -1655,7 +1655,7 @@ seteuid (uid_t c)
|
|||
/* setegid: from System V. */
|
||||
extern "C"
|
||||
int
|
||||
setegid (gid_t a)
|
||||
setegid (gid_t)
|
||||
{
|
||||
set_errno (ENOSYS);
|
||||
return 0;
|
||||
|
@ -1664,7 +1664,7 @@ setegid (gid_t a)
|
|||
/* chroot: privileged Unix system call. */
|
||||
extern "C"
|
||||
int
|
||||
chroot (const char *path)
|
||||
chroot (const char *)
|
||||
{
|
||||
set_errno (ENOSYS);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue