Browse Source

some -Wall and spaces cleanup, scsi.c left.

some brave soul should look at it.
OPENBSD_3_2
fgsch 22 years ago
parent
commit
fb18813faf
13 changed files with 28 additions and 28 deletions
  1. +2
    -2
      src/lib/libutil/check_expire.c
  2. +2
    -2
      src/lib/libutil/fparseln.c
  3. +2
    -2
      src/lib/libutil/getmaxpartitions.c
  4. +3
    -3
      src/lib/libutil/getrawpartition.c
  5. +2
    -2
      src/lib/libutil/login.c
  6. +2
    -2
      src/lib/libutil/login_tty.c
  7. +2
    -2
      src/lib/libutil/logout.c
  8. +2
    -2
      src/lib/libutil/logwtmp.c
  9. +1
    -1
      src/lib/libutil/opendev.c
  10. +2
    -2
      src/lib/libutil/passwd.c
  11. +5
    -5
      src/lib/libutil/pty.c
  12. +2
    -2
      src/lib/libutil/util.h
  13. +1
    -1
      src/lib/libutil/uucplock.c

+ 2
- 2
src/lib/libutil/check_expire.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: check_expire.c,v 1.5 2002/02/19 19:06:05 mpech Exp $ */
/* $OpenBSD: check_expire.c,v 1.6 2002/06/09 22:18:43 fgsch Exp $ */
/*
* Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
@ -88,7 +88,7 @@ login_check_expire(back, pwd, class, lastchance)
warn = 0;
} else {
dead = login_getcaptime(lc, "password-dead", 0, 0);
warn = login_getcaptime(lc, "password-warn",
warn = login_getcaptime(lc, "password-warn",
2 * DAYSPERWEEK * SECSPERDAY,
2 * DAYSPERWEEK * SECSPERDAY);
if (dead < 0) {


+ 2
- 2
src/lib/libutil/fparseln.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: fparseln.c,v 1.3 2002/02/16 21:27:29 millert Exp $
/* $OpenBSD: fparseln.c,v 1.4 2002/06/09 22:18:43 fgsch Exp $ */
/* $NetBSD: fparseln.c,v 1.7 1999/07/02 15:49:12 simonb Exp $ */
/*
@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: fparseln.c,v 1.3 2002/02/16 21:27:29 millert Exp $";
static const char rcsid[] = "$OpenBSD: fparseln.c,v 1.4 2002/06/09 22:18:43 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>


+ 2
- 2
src/lib/libutil/getmaxpartitions.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getmaxpartitions.c,v 1.2 1996/06/17 07:46:01 downsj Exp $ */
/* $OpenBSD: getmaxpartitions.c,v 1.3 2002/06/09 22:18:43 fgsch Exp $ */
/* $NetBSD: getmaxpartitions.c,v 1.1 1996/05/16 07:03:31 thorpej Exp $ */
/*-
@ -38,7 +38,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$NetBSD: getmaxpartitions.c,v 1.1 1996/05/16 07:03:31 thorpej Exp $";
static const char rcsid[] = "$NetBSD: getmaxpartitions.c,v 1.1 1996/05/16 07:03:31 thorpej Exp $";
#endif
#include <sys/param.h>


+ 3
- 3
src/lib/libutil/getrawpartition.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getrawpartition.c,v 1.2 1996/06/17 07:46:02 downsj Exp $ */
/* $OpenBSD: getrawpartition.c,v 1.3 2002/06/09 22:18:43 fgsch Exp $ */
/* $NetBSD: getrawpartition.c,v 1.1 1996/05/16 07:03:33 thorpej Exp $ */
/*-
@ -38,7 +38,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$NetBSD: getrawpartition.c,v 1.1 1996/05/16 07:03:33 thorpej Exp $";
static const char rcsid[] = "$NetBSD: getrawpartition.c,v 1.1 1996/05/16 07:03:33 thorpej Exp $";
#endif
#include <sys/param.h>
@ -50,7 +50,7 @@ int
getrawpartition()
{
int rawpart, mib[2];
size_t varlen;
size_t varlen;
mib[0] = CTL_KERN;
mib[1] = KERN_RAWPARTITION;


+ 2
- 2
src/lib/libutil/login.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: login.c,v 1.6 2001/02/05 09:46:50 deraadt Exp $ */
/* $OpenBSD: login.c,v 1.7 2002/06/09 22:18:43 fgsch Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@ -34,7 +34,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from: static char sccsid[] = "@(#)login.c 8.1 (Berkeley) 6/4/93"; */
static char *rcsid = "$Id: login.c,v 1.6 2001/02/05 09:46:50 deraadt Exp $";
static const char rcsid[] = "$Id: login.c,v 1.7 2002/06/09 22:18:43 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>


+ 2
- 2
src/lib/libutil/login_tty.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: login_tty.c,v 1.3 1996/06/17 07:46:02 downsj Exp $ */
/* $OpenBSD: login_tty.c,v 1.4 2002/06/09 22:18:43 fgsch Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@ -34,7 +34,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from: static char sccsid[] = "@(#)login_tty.c 8.1 (Berkeley) 6/4/93"; */
static char *rcsid = "$Id: login_tty.c,v 1.3 1996/06/17 07:46:02 downsj Exp $";
static const char rcsid[] = "$Id: login_tty.c,v 1.4 2002/06/09 22:18:43 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>


+ 2
- 2
src/lib/libutil/logout.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: logout.c,v 1.4 1998/07/13 02:11:13 millert Exp $ */
/* $OpenBSD: logout.c,v 1.5 2002/06/09 22:18:43 fgsch Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@ -34,7 +34,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from: static char sccsid[] = "@(#)logout.c 8.1 (Berkeley) 6/4/93"; */
static char *rcsid = "$Id: logout.c,v 1.4 1998/07/13 02:11:13 millert Exp $";
static const char rcsid[] = "$Id: logout.c,v 1.5 2002/06/09 22:18:43 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>


+ 2
- 2
src/lib/libutil/logwtmp.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: logwtmp.c,v 1.4 1999/08/17 09:13:13 millert Exp $ */
/* $OpenBSD: logwtmp.c,v 1.5 2002/06/09 22:18:43 fgsch Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@ -34,7 +34,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from: static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93"; */
static char *rcsid = "$Id: logwtmp.c,v 1.4 1999/08/17 09:13:13 millert Exp $";
static const char rcsid[] = "$Id: logwtmp.c,v 1.5 2002/06/09 22:18:43 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>


+ 1
- 1
src/lib/libutil/opendev.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: opendev.c,v 1.6 2000/04/30 17:37:46 millert Exp $ */
/* $OpenBSD: opendev.c,v 1.7 2002/06/09 22:18:43 fgsch Exp $ */
/*
* Copyright (c) 2000, Todd C. Miller. All rights reserved.


+ 2
- 2
src/lib/libutil/passwd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: passwd.c,v 1.33 2002/05/24 21:27:38 deraadt Exp $ */
/* $OpenBSD: passwd.c,v 1.34 2002/06/09 22:18:43 fgsch Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@ -34,7 +34,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: passwd.c,v 1.33 2002/05/24 21:27:38 deraadt Exp $";
static const char rcsid[] = "$OpenBSD: passwd.c,v 1.34 2002/06/09 22:18:43 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>


+ 5
- 5
src/lib/libutil/pty.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: pty.c,v 1.8 2002/05/24 22:04:02 deraadt Exp $ */
/* $OpenBSD: pty.c,v 1.9 2002/06/09 22:18:43 fgsch Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@ -34,7 +34,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from: static char sccsid[] = "@(#)pty.c 8.1 (Berkeley) 6/4/93"; */
static char *rcsid = "$Id: pty.c,v 1.8 2002/05/24 22:04:02 deraadt Exp $";
static const char rcsid[] = "$Id: pty.c,v 1.9 2002/06/09 22:18:43 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
@ -94,10 +94,10 @@ openpty(amaster, aslave, name, termp, winp)
strlcpy(name, line, 16);
}
if (termp)
(void) tcsetattr(slave,
(void) tcsetattr(slave,
TCSAFLUSH, termp);
if (winp)
(void) ioctl(slave, TIOCSWINSZ,
(void) ioctl(slave, TIOCSWINSZ,
(char *)winp);
return (0);
}
@ -125,7 +125,7 @@ forkpty(amaster, name, termp, winp)
case -1:
return (-1);
case 0:
/*
/*
* child
*/
(void) close(master);


+ 2
- 2
src/lib/libutil/util.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: util.h,v 1.20 2002/02/17 19:42:26 millert Exp $ */
/* $OpenBSD: util.h,v 1.21 2002/06/09 22:18:43 fgsch Exp $ */
/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */
/*-
@ -111,7 +111,7 @@ void login_fbtab(char *, uid_t, gid_t);
int login_check_expire(struct __sFILE *, struct passwd *, char *, int);
char *readlabelfs(char *, int);
const char *uu_lockerr(int _uu_lockresult);
int uu_lock(const char *_ttyname);
int uu_lock(const char *_ttyname);
int uu_lock_txfr(const char *_ttyname, pid_t _pid);
int uu_unlock(const char *_ttyname);
__END_DECLS


+ 1
- 1
src/lib/libutil/uucplock.c View File

@ -1,4 +1,4 @@
/* * $OpenBSD: uucplock.c,v 1.9 2002/05/26 09:29:02 deraadt Exp $*/
/* $OpenBSD: uucplock.c,v 1.10 2002/06/09 22:18:43 fgsch Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.


Loading…
Cancel
Save