From d3f256aa28729926bc19126eaa44c52c4a3c4af2 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 2 May 2011 15:21:01 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1484 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/srftopam.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'converter') diff --git a/converter/other/srftopam.c b/converter/other/srftopam.c index cd7de02a..b16eb53f 100644 --- a/converter/other/srftopam.c +++ b/converter/other/srftopam.c @@ -149,15 +149,10 @@ producePam(struct pam * const pamP, static void -convertsrf(struct cmdlineInfo const cmdline, - FILE * const ifP, - FILE * const ofP) { -/*---------------------------------------------------------------------------- - Design note: It's is really a modularity violation that we have - all the command line parameters as an argument. We do it because we're - lazy -- it takes a great deal of work to carry all that information as - separate arguments -- and it's only a very small violation. - -----------------------------------------------------------------------------*/ +srftopam(struct cmdlineInfo const cmdline, + FILE * const ifP, + FILE * const ofP) { + const char * comment = "Produced by srftopam"; /* constant */ long width, height; long fwidth; @@ -214,7 +209,7 @@ main(int argc, const char * argv[]) { ifP = pm_openr(cmdline.inputFileName); - convertsrf(cmdline, ifP, stdout); + srftopam(cmdline, ifP, stdout); pm_closer(ifP); -- cgit 1.4.1