Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r259 - trunk: . fsvs/src

fsvs
Discussion topic

Back to topic list

svn commit: r259 - trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2006-04-26 22:31:29 PDT
Message Author: pmarek
Date: 2006-04-26 22:31:29-0700
New Revision: 259

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/fsvs.c

Log:
Version() now takes the FILE * to use.
With -V it gets put to STDOUT, on error to STDERR.





Modified: trunk/fsvs/src/fsvs.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/fsv​s.c?view=diff&re​v=259&p1=trunk/f​svs/src/fsvs.c&p​2=trunk/fsvs/src/fsv​s.c&r1=258&r​2=259
====================​====================​====================​==================
--- trunk/fsvs/src/fsvs.c (original)
+++ trunk/fsvs/src/fsvs.c 2006-04-26 22:31:29-0700
@@ -214,11 +214,11 @@
 }
 
 
-const char* Version(void)
+const char* Version(FILE *output)
 {
     static const char Id[]="$Id$";
         
- printf("Version " FSVS_VERSION "\n");
+ fprintf(output, "Version " FSVS_VERSION "\n");
     return Id;
 }
 
@@ -355,7 +355,7 @@
                 break;
 
             case 'V':
- Version();
+ Version(stdout);
                 exit(0);
         }
     }
@@ -443,7 +443,7 @@
     if (status)
     {
         /* Show the version if we had an error */
- Version();
+ Version(stderr);
         return 1;
     }
     return 0;

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r259 - trunk: . fsvs/src pmarek P.Marek 2006-04-26 22:31:29 PDT
Messages per page: