bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] libdiskfs: small cleanups


From: Neal H Walfield
Subject: [PATCH] libdiskfs: small cleanups
Date: Wed, 11 Apr 2001 17:31:55 +0200
User-agent: Mutt/1.3.15i

A few small cleanups.

2001-04-08  Neal H Walfield  <neal@cs.uml.edu>

        * io-write.c (diskfs_S_io_write):  Make local variable off an
        off_t and not an int.
        * io-read.c (diskfs_S_io_read): Likewise.
        * io-stat.c (diskfs_S_io_stat): Use memcpy, not bcopy.

--- hurd-20010329-snapshot/libdiskfs/io-write.c Mon Aug 10 13:42:38 1998
+++ hurd-20010401/libdiskfs/io-write.c  Sat Apr  7 14:40:10 2001
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1994,95,96,97,2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -29,7 +29,7 @@
 {
   struct node *np;
   error_t err;
-  int off = offset;
+  off_t off = offset;
 
   if (!cred)
     return EOPNOTSUPP;
--- hurd-20010329-snapshot/libdiskfs/io-read.c  Thu Dec  2 17:30:06 1999
+++ hurd-20010401/libdiskfs/io-read.c   Sat Apr  7 14:41:39 2001
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation
+   Copyright (C) 1994,95,96,97,99,2001 Free Software Foundation
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -29,7 +29,7 @@
 {
   struct node *np;
   int err;
-  int off = offset;
+  off_t off = offset;
   char *buf;
   int ourbuf = 0;
 
--- hurd-20010329-snapshot/libdiskfs/io-stat.c  Fri Jun 20 01:40:54 1997
+++ hurd-20010401/libdiskfs/io-stat.c   Sat Apr  7 14:44:16 2001
@@ -1,5 +1,5 @@
 /* 
-   Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation
+   Copyright (C) 1994,95,96,97,2001 Free Software Foundation
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -38,7 +38,7 @@
   else
     diskfs_set_node_times (np);
 
-  bcopy (&np->dn_stat, statbuf, sizeof (struct stat));
+  memcpy (statbuf, &np->dn_stat, sizeof (struct stat));
   statbuf->st_mode &= ~(S_IATRANS | S_IROOT);
   if (fshelp_translated (&np->transbox))
     statbuf->st_mode |= S_IATRANS;

Attachment: pgpLOhityk3Ee.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]