diff options
author | Christopher Faylor <me@cgf.cx> | 2002-01-29 03:08:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-01-29 03:08:42 +0000 |
commit | 012858ecdc2333dbc45817aa1510b15e4170f552 (patch) | |
tree | 73fb0563cab1ea859dda01c6900182f1582ffccf /winsup/utils/mkgroup.c | |
parent | 4239e5ecf4d78a12bd858156c2e53e993aaf0c0d (diff) | |
download | cygnal-012858ecdc2333dbc45817aa1510b15e4170f552.tar.gz cygnal-012858ecdc2333dbc45817aa1510b15e4170f552.tar.bz2 cygnal-012858ecdc2333dbc45817aa1510b15e4170f552.zip |
* 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.
Diffstat (limited to 'winsup/utils/mkgroup.c')
-rw-r--r-- | winsup/utils/mkgroup.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c index 5dfef1c6f..9644b1842 100644 --- a/winsup/utils/mkgroup.c +++ b/winsup/utils/mkgroup.c @@ -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), |