source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Lint checks over demandoc.
@ 2011-09-01 10:49 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-09-01 10:49 UTC (permalink / raw)
  To: source

Log Message:
-----------
Lint checks over demandoc.

Modified Files:
--------------
    mdocml:
        demandoc.c

Revision Data
-------------
Index: demandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/demandoc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -Ldemandoc.c -Ldemandoc.c -u -p -r1.2 -r1.3
--- demandoc.c
+++ demandoc.c
@@ -44,7 +44,6 @@ main(int argc, char *argv[])
 	struct mparse	*mp;
 	int		 ch, i;
 	extern int	 optind;
-	extern char	*optarg;
 
 	progname = strrchr(argv[0], '/');
 	if (progname == NULL)
@@ -76,7 +75,7 @@ main(int argc, char *argv[])
 	}
 
 	mparse_free(mp);
-	return(MANDOCLEVEL_OK);
+	return((int)MANDOCLEVEL_OK);
 }
 
 static void
@@ -132,7 +131,7 @@ pstring(const char *p, int col, int *col
 			if (ESCAPE_ERROR == esc)
 				return;
 		} else {
-			putchar(*p++);
+			putchar((unsigned char )*p++);
 			(*colp)++;
 		}
 	}
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-01 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01 10:49 mdocml: Lint checks over demandoc kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).