* cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in sys/cygwin.h
instead. * getfacl.c: Add include to remove warning. * mkgroup.c (main): Assign variables outside of parameter passing. This seems to eliminate some compiler warnings.
This commit is contained in:
parent
4239e5ecf4
commit
012858ecdc
|
@ -1,3 +1,11 @@
|
|||
2002-01-28 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in
|
||||
sys/cygwin.h instead.
|
||||
* getfacl.c: Add include to remove warning.
|
||||
* mkgroup.c (main): Assign variables outside of parameter passing.
|
||||
This seems to eliminate some compiler warnings.
|
||||
|
||||
2002-01-28 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* cygcheck.cc: Use specific cygwin includes, as required.
|
||||
|
|
|
@ -8,17 +8,15 @@
|
|||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
typedef unsigned short uid_t;
|
||||
typedef unsigned short gid_t;
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <windows.h>
|
||||
#include "cygwin/include/sys/cygwin.h>
|
||||
#include "cygwin/include/sys/cygwin.h"
|
||||
#include "cygwin/include/mntent.h"
|
||||
#include "cygwin/include/time.h"
|
||||
#include "cygwin/include/getopt.h"
|
||||
#include "cygwin/include/ctype.h"
|
||||
#include "time.h"
|
||||
#include "ctype.h"
|
||||
|
||||
int verbose = 0;
|
||||
int registry = 0;
|
||||
|
|
|
@ -18,6 +18,7 @@ details. */
|
|||
#include <sys/types.h>
|
||||
#include <sys/acl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
|
||||
char *
|
||||
permstr (mode_t perm)
|
||||
|
|
|
@ -528,11 +528,14 @@ main (int argc, char **argv)
|
|||
/*
|
||||
* Get `None' group
|
||||
*/
|
||||
GetComputerName (name, (len = 256, &len));
|
||||
len = 256;
|
||||
GetComputerName (name, &len);
|
||||
csid = (PSID) malloc (1024);
|
||||
len = 1024;
|
||||
len2 = 256;
|
||||
LookupAccountName (NULL, name,
|
||||
csid, (len = 1024, &len),
|
||||
dom, (len2 = 256, &len),
|
||||
csid, &len,
|
||||
dom, &len,
|
||||
&use);
|
||||
print_special (print_sids, GetSidIdentifierAuthority (csid), 5,
|
||||
*GetSidSubAuthority (csid, 0),
|
||||
|
|
Loading…
Reference in New Issue