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