diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2019-01-08 18:49:29 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-01-08 18:49:29 +0100 |
commit | 2d015e0e68f45d7b1a96e63e39086d35df48344b (patch) | |
tree | b3b7b1903df2b1b736d716b4aaa097779fa958f6 | |
parent | fe8f406cc663f1930cce4bb1ef23c01623d93c14 (diff) | |
download | cygnal-2d015e0e68f45d7b1a96e63e39086d35df48344b.tar.gz cygnal-2d015e0e68f45d7b1a96e63e39086d35df48344b.tar.bz2 cygnal-2d015e0e68f45d7b1a96e63e39086d35df48344b.zip |
Cygwin: remove unused tmpbuf.h
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/tmpbuf.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/winsup/cygwin/tmpbuf.h b/winsup/cygwin/tmpbuf.h deleted file mode 100644 index 1149ef9b1..000000000 --- a/winsup/cygwin/tmpbuf.h +++ /dev/null @@ -1,25 +0,0 @@ -/* tmpbuf.h - -This software is a copyrighted work licensed under the terms of the -Cygwin license. Please consult the file "CYGWIN_LICENSE" for -details. */ - -#ifndef _TMPBUF_H -#define _TMPBUF_H -class tmpbuf -{ - void *buf; -public: - tmpbuf (size_t size = NT_MAX_PATH) - { - buf = calloc (1, size); - if (!buf) - api_fatal ("allocation of temporary buffer failed"); - } - operator void * () {return buf;} - operator char * () {return (char *) buf;} - operator PSECURITY_DESCRIPTOR () {return (PSECURITY_DESCRIPTOR) buf;} - PSECURITY_DESCRIPTOR operator -> () {return (PSECURITY_DESCRIPTOR) buf;} - ~tmpbuf () {free (buf);} -}; -#endif /*_TMPBUF_H*/ |