summaryrefslogtreecommitdiff
path: root/cxpm
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 15:45:20 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 15:45:20 -0200
commit6697e31fbb616656b7f34515a79454af394b500a (patch)
tree504d0d5c456226bec6ced89839d94964a728e321 /cxpm
parent41e4e2de4d73d098d332ece0410e9f8fda4fe10d (diff)
Janitor: ansification, make distcheck, .gitignore
The ansification code is minor edit of the patch (by me) at https://bugs.freedesktop.org/show_bug.cgi?id=14727 as it would not apply cleanly anymore.
Diffstat (limited to 'cxpm')
-rw-r--r--cxpm/.gitignore5
-rw-r--r--cxpm/cxpm.c13
2 files changed, 3 insertions, 15 deletions
diff --git a/cxpm/.gitignore b/cxpm/.gitignore
deleted file mode 100644
index 4c621a5..0000000
--- a/cxpm/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-cxpm
-.deps
-.libs
-Makefile
-Makefile.in
diff --git a/cxpm/cxpm.c b/cxpm/cxpm.c
index ed0c7c8..c5cf289 100644
--- a/cxpm/cxpm.c
+++ b/cxpm/cxpm.c
@@ -56,9 +56,7 @@
* note that 's' could stand both for "special" and "slow" ;-)
*/
static int
-sGetc(data, file)
- xpmData *data;
- FILE *file;
+sGetc(xpmData *data, FILE *file)
{
int c = getc(data->stream.file);
if (c == '\n') {
@@ -71,10 +69,7 @@ sGetc(data, file)
}
static void
-sUngetc(data, c, file)
- xpmData *data;
- int c;
- FILE *file;
+sUngetc(xpmData *data, int c, FILE *file)
{
ungetc(c, data->stream.file);
if (c == '\n') {
@@ -143,9 +138,7 @@ ErrorMessage(
}
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char **argv)
{
XpmImage image;
char *filename;