Changeset 92 for trunk


Ignore:
Timestamp:
Sep 30, 2007, 11:50:26 AM (18 years ago)
Author:
Paul Smedley
Message:

Last fix to make it build?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/lib/tdb/common/lock.c

    r81 r92  
    2929
    3030#ifdef __OS2__
     31static char* lock_type( int lck)
     32{
     33        static char buffer[16];
     34        switch(lck) {
     35        case F_GETLK: return "F_GETLK";
     36        case F_SETLK: return "F_SETLK";
     37        case F_SETLKW: return "F_SETLKW";
     38        default:
     39                sprintf( buffer, "unknown %d", lck);
     40        }
     41        return buffer;
     42}
     43
     44static char* read_type( int rw)
     45{
     46        static char buffer[16];
     47        switch(rw) {
     48        case F_RDLCK: return "F_RDLCK";
     49        case F_UNLCK: return "F_UNLCK";
     50        case F_WRLCK: return "F_WRLCK";
     51        default:
     52                sprintf( buffer, "unknown %d", rw);
     53        }
     54        return buffer;
     55        }
    3156
    3257static int _mutex_brlock(struct tdb_context *tdb, tdb_off_t offset,
Note: See TracChangeset for help on using the changeset viewer.