patch-2.4.10 linux/fs/reiserfs/item_ops.c

Next file: linux/fs/reiserfs/journal.c
Previous file: linux/fs/reiserfs/ioctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/fs/reiserfs/item_ops.c linux/fs/reiserfs/item_ops.c
@@ -2,18 +2,9 @@
  * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
  */
 
-#ifdef __KERNEL__
-
 #include <linux/sched.h>
 #include <linux/reiserfs_fs.h>
 
-#else
-
-#include "nokernel.h"
-
-#endif
-
-
 // this contains item handlers for old item types: sd, direct,
 // indirect, directory
 
@@ -46,14 +37,7 @@
 {
     static char timebuf[256];
 
-#ifndef __KERNEL__
-//    struct tm *loctime;
-//    loctime = localtime (&t);
-    sprintf (timebuf, "%s", asctime (localtime (&t)));
-    timebuf[strlen (timebuf) - 1] = 0;
-#else
     sprintf (timebuf, "%ld", t);
-#endif
     return timebuf;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)