Remove incorrect or inconsistenly used cvs keywords
This commit is contained in:
+25
-32
@@ -1,31 +1,24 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* util.c - utility functions to print some numerical values in a nice fashion
|
||||
* Copyright (C) 2005 Peter Marschall
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* $Source$
|
||||
* $Revision$
|
||||
* Checked in by: $Author$
|
||||
*
|
||||
*******************************************************************************/
|
||||
/** \file clients/lcdproc/util.c
|
||||
* Utility functions to print some numerical values in a nice fashion
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2005 Peter Marschall
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301.
|
||||
*/
|
||||
|
||||
#include "util.h"
|
||||
|
||||
@@ -50,8 +43,8 @@ sprintf_memory(char *dst, double value, double roundlimit)
|
||||
format = "%.3f%s";
|
||||
|
||||
sprintf(dst, format, value, unit);
|
||||
}
|
||||
return dst;
|
||||
}
|
||||
return dst;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +61,7 @@ sprintf_percent(char *dst, double percent)
|
||||
strcpy(dst, "100%");
|
||||
else
|
||||
sprintf(dst, "%.1f%%", (percent >= 0) ? percent : 0);
|
||||
}
|
||||
}
|
||||
return dst;
|
||||
}
|
||||
|
||||
@@ -99,7 +92,7 @@ convert_double(double *value, int base, double roundlimit)
|
||||
off++;
|
||||
*value /= base;
|
||||
}
|
||||
return units[off];
|
||||
return units[off];
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
+22
-29
@@ -1,35 +1,28 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* util.h - header file for util.c
|
||||
* Copyright (C) 2005 Peter Marschall
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* ---
|
||||
*
|
||||
* $Source$
|
||||
* $Revision$
|
||||
* Checked in by: $Author$
|
||||
*
|
||||
*******************************************************************************/
|
||||
/** \file clients/lcdproc/util.h
|
||||
* Header file for \c util.c
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2005 Peter Marschall
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef LCDPROC_UTIL_H
|
||||
# define LCDPROC_UTIL_H
|
||||
#define LCDPROC_UTIL_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
--- server/drivers/port.c
|
||||
+++ server/drivers/port.c 2006-03-26 19:45:58.416006888 -0300
|
||||
@@ -0,0 +1,254 @@
|
||||
+/* $id$
|
||||
+/*
|
||||
+ * Low level ppdev based I/O functions
|
||||
+ *
|
||||
+ * This file is released under the GPL. See file COPYING in this
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $id$
|
||||
/*
|
||||
* Low level I/O functions taken from led-stat.txt
|
||||
* Jan 22 95 copyright damianf@wpi.edu
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user