emul-handler: fh_Arg1 should be the only element of struct FileHandle touched during...
authorjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 23 Jul 2013 01:40:22 +0000 (23 01:40 +0000)
committerjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Tue, 23 Jul 2013 01:40:22 +0000 (23 01:40 +0000)
Signed-off-by: Jason S. McMullan <jason.mcmullan@gmail.com>
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47752 fb15a70f-31f2-0310-bbcc-cdcc74a49acc

arch/all-hosted/filesys/emul_handler/emul_handler.c

index 898b50f..c8d9898 100644 (file)
@@ -738,8 +738,6 @@ static void handlePacket(struct emulbase *emulbase, struct filehandle *fhv, stru
 
         if (Res2 == 0)
         {
-            memset(f, 0, sizeof(*f));
-            f->fh_Type = mp;
             f->fh_Arg1 = (SIPTR)fh2;
             if (fh2 != fhv)
                 fh2->locks++;
@@ -930,8 +928,7 @@ static void handlePacket(struct emulbase *emulbase, struct filehandle *fhv, stru
         fl = BADDR(dp->dp_Arg2);
         DCMD(bug("[emul] %p ACTION_FH_FROM_LOCK: %p, lock %p\n", fhv, fh, fh2));
 
-       f->fh_Type = mp;
-       f->fh_Arg1 = (SIPTR)fh2;
+        f->fh_Arg1 = (SIPTR)fh2;
 
         if (fl)
             FreeMem(fl, sizeof(*fl));