--- a/main.c Fri Sep 14 22:23:04 2007 +0200
+++ b/main.c Fri Sep 14 22:26:58 2007 +0200
@@ -1,3 +1,9 @@
+/*
+ stdin mix - a mixer/multiplexer for stdin to processes
+ Copyright (C) 2007 Lluís Batlle i Rossell
+
+ Please find the license in the provided COPYING file.
+*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
@@ -6,6 +12,8 @@
#include "main.h"
+static const char version[] = "0.9";
+
static int max(int a, int b)
{
if (a > b)
@@ -211,7 +219,8 @@
static int showhelp(const char *pname)
{
- printf("sdtdin-mix - Copyright 2007 Lluís Batlle i Rossell\n");
+ printf("sdtdin-mix v%s - Copyright (C) 2007 Lluis Batlle i Rossell\n",
+ version);
printf("usage: %s [appcommand] [param1] [param2] ...\n", pname);
printf(" If you give _appcommand_, it starts the application and\n");
printf(" a stdin server on $SM_SOCKET or /tmp/socket-sm.UID.\n");