Make uu_* const correct.
Suggested by: joerg
This commit is contained in:
parent
511d7b9c07
commit
85b0d75dd9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25740
@ -18,7 +18,7 @@
|
||||
* 5. Modifications may be freely made to this file providing the above
|
||||
* conditions are met.
|
||||
*
|
||||
* $Id: libutil.h,v 1.6 1997/03/31 22:47:53 brian Exp $
|
||||
* $Id: libutil.h,v 1.7 1997/05/10 18:55:37 davidn Exp $
|
||||
*/
|
||||
|
||||
#ifndef _LIBUTIL_H_
|
||||
@ -41,9 +41,9 @@ int openpty __P((int *amaster, int *aslave, char *name,
|
||||
struct termios *termp, struct winsize *winp));
|
||||
int forkpty __P((int *amaster, char *name,
|
||||
struct termios *termp, struct winsize *winp));
|
||||
char *uu_lockerr __P((int uu_lockresult));
|
||||
int uu_lock __P((char *ttyname));
|
||||
int uu_unlock __P((char *ttyname));
|
||||
const char *uu_lockerr __P((int uu_lockresult));
|
||||
int uu_lock __P((const char *ttyname));
|
||||
int uu_unlock __P((const char *ttyname));
|
||||
int _secure_path __P((const char *path, uid_t uid, gid_t gid));
|
||||
__END_DECLS
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id: uucplock.3,v 1.5 1997/04/02 05:52:22 mpp Exp $
|
||||
.\" $Id: uucplock.3,v 1.6 1997/05/11 08:50:33 davidn Exp $
|
||||
.\" "
|
||||
.Dd March 30, 1997
|
||||
.Os
|
||||
@ -37,10 +37,10 @@
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <libutil.h>
|
||||
.Ft int
|
||||
.Fn uu_lock "char *ttyname"
|
||||
.Fn uu_lock "const char *ttyname"
|
||||
.Ft int
|
||||
.Fn uu_unlock "char *ttyname"
|
||||
.Ft char *
|
||||
.Fn uu_unlock "const char *ttyname"
|
||||
.Ft const char *
|
||||
.Fn uu_lockerr "int uu_lockresult"
|
||||
.Pp
|
||||
Link with
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: uucplock.c,v 1.5 1997/04/02 04:24:39 ache Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -62,7 +62,7 @@ static pid_t get_pid (int fd,int *err);
|
||||
* -1 - failure
|
||||
*/
|
||||
|
||||
int uu_lock (char *ttyname)
|
||||
int uu_lock (const char *ttyname)
|
||||
{
|
||||
int fd;
|
||||
pid_t pid;
|
||||
@ -114,7 +114,7 @@ int uu_lock (char *ttyname)
|
||||
return UU_LOCK_OK;
|
||||
}
|
||||
|
||||
int uu_unlock (char *ttyname)
|
||||
int uu_unlock (const char *ttyname)
|
||||
{
|
||||
char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN];
|
||||
|
||||
@ -122,7 +122,7 @@ int uu_unlock (char *ttyname)
|
||||
return unlink(tbuf);
|
||||
}
|
||||
|
||||
char *uu_lockerr (int uu_lockresult)
|
||||
const char *uu_lockerr (int uu_lockresult)
|
||||
{
|
||||
static char errbuf[128];
|
||||
char *fmt;
|
||||
|
Loading…
Reference in New Issue
Block a user