Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-03-19 18:48:40 +0300
committerChristopher Faylor <me@cgf.cx>2002-03-19 18:48:40 +0300
commit7a9f3efb1b2d033fe3fce93dbb772ddd09c9c072 (patch)
tree3bb8a53a7254ad9f3df3912a6df309c928c358b5 /winsup
parent22a9157c7cfefdfcc63f93e50c6a3f1ff0b47051 (diff)
* mkgroup.c (usage): Use one just fprintf + string concatenation for output
message. (print_version): Add void to function type and update copyright.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/utils/ChangeLog6
-rw-r--r--winsup/utils/mkgroup.c35
-rw-r--r--winsup/utils/passwd.c2
3 files changed, 25 insertions, 18 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 3de05e610..60b296a91 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,9 @@
+2002-03-19 Christopher Faylor <cgf@redhat.com>
+
+ * mkgroup.c (usage): Use one just fprintf + string concatenation for
+ output message.
+ (print_version): Add void to function type and update copyright.
+
2002-03-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* mkgroup.c (usage): Simplify usage output. Generalize to allow use
diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c
index 6e041b00f..d38b49a67 100644
--- a/winsup/utils/mkgroup.c
+++ b/winsup/utils/mkgroup.c
@@ -1,6 +1,6 @@
/* mkgroup.c:
- Copyright 1997, 1998, 2002 Cygnus Solutions.
+ Copyright 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
This file is part of Cygwin.
@@ -406,21 +406,21 @@ print_special (int print_sids,
int
usage (FILE * stream, int status)
{
- fprintf (stream, "Usage: mkgroup [OPTION]... [domain]\n\n");
- fprintf (stream, "This program prints a /etc/group file to stdout\n\n");
- fprintf (stream, "Options:\n");
- fprintf (stream, " -l,--local print local group information\n");
- fprintf (stream, " -d,--domain print global group information from the domain\n");
- fprintf (stream, " specified (or from the current domain if there is\n");
- fprintf (stream, " no domain specified)\n");
- fprintf (stream, " -o,--id-offset offset change the default offset (10000) added to uids\n");
- fprintf (stream, " in domain accounts.\n");
- fprintf (stream, " -s,--no-sids don't print SIDs in pwd field\n");
- fprintf (stream, " (this affects ntsec)\n");
- fprintf (stream, " -u,--users print user list in gr_mem field\n");
- fprintf (stream, " -h,--help print this message\n\n");
- fprintf (stream, " -v,--version print version information and exit\n\n");
- fprintf (stream, "One of `-l' or `-d' must be given on NT/W2K.\n");
+ fprintf (stream, "Usage: mkgroup [OPTION]... [domain]\n\n"
+ "This program prints a /etc/group file to stdout\n\n"
+ "Options:\n"
+ " -l,--local print local group information\n"
+ " -d,--domain print global group information from the domain\n"
+ " specified (or from the current domain if there is\n"
+ " no domain specified)\n"
+ " -o,--id-offset offset change the default offset (10000) added to uids\n"
+ " in domain accounts.\n"
+ " -s,--no-sids don't print SIDs in pwd field\n"
+ " (this affects ntsec)\n"
+ " -u,--users print user list in gr_mem field\n"
+ " -h,--help print this message\n\n"
+ " -v,--version print version information and exit\n\n"
+ "One of `-l' or `-d' must be given on NT/W2K.\n");
return status;
}
@@ -437,6 +437,7 @@ struct option longopts[] = {
char opts[] = "ldo:suhv";
+void
print_version ()
{
const char *v = strchr (version, ':');
@@ -454,7 +455,7 @@ print_version ()
printf ("\
mkgroup (cygwin) %.*s\n\
group File Generator\n\
-Copyright 1997, 1998, 2002 Red Hat, Inc.\n\
+Copyright 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.\n\
Compiled on %s", len, v, __DATE__);
}
diff --git a/winsup/utils/passwd.c b/winsup/utils/passwd.c
index 9a90f6e4a..dd9c6daad 100644
--- a/winsup/utils/passwd.c
+++ b/winsup/utils/passwd.c
@@ -1,6 +1,6 @@
/* passwd.c: Changing passwords and managing account information
- Copyright 1999 Cygnus Solutions.
+ Copyright 1999, 2000, 2001, 2002 Red Hat, Inc.
Written by Corinna Vinschen <corinna.vinschen@cityweb.de>