diff options
author | Brian Cameron <brian.cameron@sun.com> | 2006-06-09 21:07:43 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2006-06-09 21:07:43 +0000 |
commit | e2ce5a275c2553e2d1bfc756a18d05d0e92a5b2c (patch) | |
tree | c94421e73490fc6f9d44edd42ce04f4a9016668e /utils | |
parent | ed80ffc1315eb7741f099c171618b9c20ca747c5 (diff) | |
download | gdm-e2ce5a275c2553e2d1bfc756a18d05d0e92a5b2c.tar.gz |
Fix autologin Pam service name. Fixes bug #344191. Fix warnings.
2006-06-09 Brian Cameron <brian.cameron@sun.com>
* daemon/verify-pam.c: Fix autologin Pam service name. Fixes bug
#344191.
* daemon/gdmconfig.c, gui/gdmconfig.c, gui/gdmdynamic.c,
gui/gdmsetup.c, gui/greeter/greeter.c,
gui/greeter/greeter_canvas_item.c, gui/greeter/greeter_geometry.c
gui/greeter/greeter_item_pam.c, gui/greeter/greeter_parser.c,
gui/greeter/greeter_system.c, utils/prefetch.c: Fix warnings.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/gdmprefetch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/gdmprefetch.c b/utils/gdmprefetch.c index 155a37d3..3e385b7f 100644 --- a/utils/gdmprefetch.c +++ b/utils/gdmprefetch.c @@ -21,6 +21,7 @@ */ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <sys/types.h> #include <sys/mman.h> #include <fcntl.h> @@ -31,7 +32,7 @@ int out = 0; -int +static int doout(char *s) { int fd; @@ -54,14 +55,14 @@ doout(char *s) #define SIZE 1024*128 -int +static int doin (char *s) { int fd; char buffer[SIZE]; if ((fd = open(s, O_RDONLY)) < 0) { - fprintf (stderr, "fopen: %s %s\n", strerror(errno), s); + fprintf (stderr, "fopen: %s %s\n", strerror (errno), s); return (-1); } @@ -80,7 +81,6 @@ main (int argc, char *argv[]) int c, errflg = 0; extern int optind, optopt; extern char *optarg; - int i; while ((c = getopt (argc, argv, "o:")) != -1) { switch (c) { |