summaryrefslogtreecommitdiff
path: root/atobm.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-14 21:25:06 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-14 21:25:06 -0700
commita8ee8e937e8d939522f18fa5723afea084221467 (patch)
tree46430bb72fdb1d680d50031a9a744737f7ac7d9a /atobm.c
parent64eacd3665306283d126d0df7cf63a071e576c38 (diff)
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'atobm.c')
-rw-r--r--atobm.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/atobm.c b/atobm.c
index ec41944..9963209 100644
--- a/atobm.c
+++ b/atobm.c
@@ -38,21 +38,21 @@ from The Open Group.
static char *ProgramName;
-static void doit(FILE *fp, char *filename, char *chars,
+static void doit(FILE *fp, char *filename, char *chars,
int xhot, int yhot, char *name);
-static void
+static void
usage (void)
{
fprintf (stderr, "usage: %s [-options ...] [filename]\n\n",
ProgramName);
- fprintf (stderr,
+ fprintf (stderr,
"where options include:\n");
- fprintf (stderr,
+ fprintf (stderr,
" -chars cc chars to use for 0 and 1 bits, respectively\n");
- fprintf (stderr,
+ fprintf (stderr,
" -name variable name to use in bitmap file\n");
- fprintf (stderr,
+ fprintf (stderr,
" -xhot number x position of hotspot\n");
fprintf (stderr,
" -yhot number y position of hotspot\n");
@@ -162,10 +162,10 @@ main (int argc, char *argv[])
static void
-doit (FILE *fp,
- char *filename,
- char *chars,
- int xhot, int yhot,
+doit (FILE *fp,
+ char *filename,
+ char *chars,
+ int xhot, int yhot,
char *name)
{
int i, j;
@@ -187,7 +187,7 @@ doit (FILE *fp,
static unsigned char masktable[] = {
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 };
int padded = 0;
-
+
#define NTOALLOC 16
#define NewSList() \
slist = (struct _scan_list *) calloc (1, sizeof *slist); \
@@ -204,7 +204,7 @@ doit (FILE *fp,
return; \
} \
slist->used = 0; \
- slist->next = NULL;
+ slist->next = NULL;
while (1) {
buf[0] = '\0';