From 952c561c3670d6facaf19147a26dfe5989efbe07 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 16 Oct 2020 18:59:00 -0700 Subject: [PATCH] remove SFONCE() no-op --- lib/sfio/sfhdr.h | 2 -- lib/sfio/sfmode.c | 2 -- lib/sfio/sfnew.c | 2 -- lib/sfio/sfsetbuf.c | 2 -- 4 files changed, 8 deletions(-) diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 179de33f6..b325f95a8 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -87,8 +87,6 @@ extern "C" { #undef SF_MTSAFE /* no need to worry about thread-safety */ #define SF_MTSAFE 0 -#define SFONCE() (void)(0) - #define SFMTXLOCK(f) (void)(0) #define SFMTXUNLOCK(f) (void)(0) #define SFMTXSTART(f,v) { if(!f) return(v); } diff --git a/lib/sfio/sfmode.c b/lib/sfio/sfmode.c index b092b249a..d673e49e7 100644 --- a/lib/sfio/sfmode.c +++ b/lib/sfio/sfmode.c @@ -300,8 +300,6 @@ int _sfmode(Sfio_t * f, int wanted, int local) Sfoff_t addr; int rv = 0; - SFONCE(); /* initialize mutexes */ - if ((!local && SFFROZEN(f)) || (!(f->flags & SF_STRING) && f->file < 0)) { if (local || !f->disc || !f->disc->exceptf) { diff --git a/lib/sfio/sfnew.c b/lib/sfio/sfnew.c index 2f90746db..42bb62d30 100644 --- a/lib/sfio/sfnew.c +++ b/lib/sfio/sfnew.c @@ -33,8 +33,6 @@ Sfio_t *sfnew(Sfio_t * oldf, void * buf, size_t size, int file, Sfio_t *f; int sflags; - SFONCE(); /* initialize mutexes */ - if (!(flags & SF_RDWR)) return NIL(Sfio_t *); diff --git a/lib/sfio/sfsetbuf.c b/lib/sfio/sfsetbuf.c index cf2090d4b..183b5833a 100644 --- a/lib/sfio/sfsetbuf.c +++ b/lib/sfio/sfsetbuf.c @@ -63,8 +63,6 @@ void *sfsetbuf(Sfio_t * f, void * buf, size_t size) int oflags, init, local; Stat_t st; - SFONCE(); - SFMTXSTART(f, NIL(void *)); GETLOCAL(f, local); -- 2.40.0