summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-25 15:00:37 +0000
committerJim Meyering <jim@meyering.net>1998-07-25 15:00:37 +0000
commit27e780fe9790d6604ad90bad997db3c0e081b103 (patch)
tree462971df447b14bb9a8b79ddd735c81e9f2d8264 /lib
parent122d3f15ae0ea033bd4ff99df2eae455e042a609 (diff)
downloadcoreutils-27e780fe9790d6604ad90bad997db3c0e081b103.tar.xz
(xatoi): Ansideclify.
(fstype_to_string): Ansideclify.
Diffstat (limited to 'lib')
-rw-r--r--lib/mountlist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 2759974cd..c063c6810 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -129,10 +129,10 @@ extern int errno;
/* Return the value of the hexadecimal number represented by CP.
No prefix (like '0x') or suffix (like 'h') is expected to be
part of CP. */
+/* FIXME: this can overflow */
static int
-xatoi (cp)
- char *cp;
+xatoi (char *cp)
{
int val;
@@ -266,8 +266,7 @@ fsp_to_string (const struct statfs *fsp)
#ifdef MOUNTED_VMOUNT /* AIX. */
static char *
-fstype_to_string (t)
- int t;
+fstype_to_string (int t)
{
struct vfs_ent *e;