remove system library prototypes
This commit is contained in:
parent
1a524cb93a
commit
de2c06c54d
|
|
@ -578,7 +578,6 @@ AddSuLog(
|
|||
|
||||
{
|
||||
char *toString;
|
||||
struct tm *localtime ();
|
||||
|
||||
FILE * f;
|
||||
struct stat st;
|
||||
|
|
|
|||
|
|
@ -151,9 +151,6 @@ extern int errno;
|
|||
#define NL_CAT_LOCALE 0
|
||||
#endif
|
||||
|
||||
extern time_t timelocal(); /* LINT */
|
||||
extern char * getlogin(); /* LINT */
|
||||
extern void(*sigset())();
|
||||
extern int cmtt_init(char *, Calendar *, XtAppContext, Widget);
|
||||
extern void show_about(Widget, XtPointer, XtPointer);
|
||||
|
||||
|
|
|
|||
|
|
@ -89,11 +89,7 @@ static char sccsid[] = "@(#)tempbr.c 1.48 95/03/28 Copyr 1991 Sun Microsystems,
|
|||
static void tb_cancel_cb();
|
||||
static void tb_close_cb();
|
||||
static void tempbr_show_cb(Widget w, XtPointer data, XtPointer cbs);
|
||||
#if defined(__linux__)
|
||||
#include <string.h>
|
||||
#else
|
||||
extern char *strdup(const char *);
|
||||
#endif
|
||||
|
||||
#ifdef FNS_DEMO
|
||||
/* This stuff is currently broken */
|
||||
|
|
|
|||
|
|
@ -157,7 +157,6 @@ static int mdays[12] =
|
|||
{31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
||||
#define epoch BOT_YEAR
|
||||
|
||||
extern struct tm *localtime();
|
||||
time_t dateconv(int mm,
|
||||
int dd,
|
||||
int yy,
|
||||
|
|
|
|||
|
|
@ -104,18 +104,6 @@
|
|||
*/
|
||||
#define SHORT_SELECT_TIMEOUT 20
|
||||
|
||||
/*
|
||||
* External system calls:
|
||||
*/
|
||||
extern pid_t fork ();
|
||||
extern int execvp ();
|
||||
extern pid_t wait ();
|
||||
extern int atoi ();
|
||||
extern void _exit ();
|
||||
extern unsigned int sleep ();
|
||||
extern void exit ();
|
||||
extern char *getenv();
|
||||
|
||||
/*
|
||||
* Local func protos
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1076,7 +1076,6 @@ SetUserAuthorization (struct display *d, struct verify_info *verify)
|
|||
int lockStatus;
|
||||
Xauth *entry, **auths;
|
||||
int setenv;
|
||||
char **setEnv (), *getEnv ();
|
||||
struct stat statb;
|
||||
int i;
|
||||
int magicCookie;
|
||||
|
|
@ -1257,7 +1256,6 @@ RemoveUserAuthorization (struct display *d, struct verify_info *verify)
|
|||
FILE *old, *new;
|
||||
struct stat statb;
|
||||
int i;
|
||||
char *getEnv ();
|
||||
|
||||
if (!(auths = d->authorizations))
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@
|
|||
* Author: Keith Packard, MIT X Consortium
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <X11/Xos.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
|
|
@ -53,9 +54,6 @@
|
|||
#include <termio.h>
|
||||
#endif
|
||||
|
||||
extern void exit ();
|
||||
|
||||
|
||||
void
|
||||
BecomeDaemon( void )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -662,7 +662,7 @@ MakeDialog( DialogType dtype )
|
|||
|
||||
int width;
|
||||
|
||||
FILE *fp = NULL, *fopen();
|
||||
FILE *fp = NULL;
|
||||
char buffer[128];
|
||||
char *str;
|
||||
|
||||
|
|
|
|||
|
|
@ -990,7 +990,6 @@ Authenticate( struct display *d, char *name, char *passwd, char **msg )
|
|||
static int login_attempts = 0; /* # failed authentications */
|
||||
|
||||
struct passwd *p; /* password structure */
|
||||
char *crypt();
|
||||
|
||||
int n;
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@
|
|||
***************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "vg.h"
|
||||
#include "vgmsg.h"
|
||||
#include <Xm/CascadeBG.h>
|
||||
|
|
|
|||
|
|
@ -1163,7 +1163,7 @@ MakeDialog( DialogType dtype )
|
|||
|
||||
int width;
|
||||
|
||||
FILE *fp, *fopen();
|
||||
FILE *fp;
|
||||
char buffer[128];
|
||||
|
||||
Widget w = NULL, text;
|
||||
|
|
|
|||
|
|
@ -131,8 +131,6 @@ static LockStruct LockProcs[] = {
|
|||
#define NUMPROCS (sizeof LockProcs / sizeof LockProcs[0])
|
||||
|
||||
|
||||
extern char *getenv();
|
||||
|
||||
#ifndef DEF_FILESEARCHPATH
|
||||
#define DEF_FILESEARCHPATH "/usr/lib/X11/%T/%N%S"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1696,7 +1696,6 @@ localAuthenticate(
|
|||
{
|
||||
struct passwd *pwent = NULL;
|
||||
char *p, *q;
|
||||
char *crypt();
|
||||
Boolean rc = True;
|
||||
Boolean done = False;
|
||||
struct spwd *sp = NULL;
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ SOFTWARE.
|
|||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
#include <Xm/GadgetP.h>
|
||||
#include <Xm/ManagerP.h>
|
||||
#include "ClockP.h"
|
||||
|
|
@ -321,7 +322,6 @@ ClockTick(
|
|||
XtIntervalId *id )
|
||||
{
|
||||
DtClockGadget w = (DtClockGadget)client_data;
|
||||
struct tm * localtime ();
|
||||
struct tm tm;
|
||||
time_t time_value;
|
||||
char * time_ptr;
|
||||
|
|
@ -464,8 +464,6 @@ DrawLine (
|
|||
{
|
||||
double dblank_length = (double)blank_length, dlength = (double)length;
|
||||
double angle, cosangle, sinangle;
|
||||
double cos ();
|
||||
double sin ();
|
||||
int cx = w->clock.centerX, cy = w->clock.centerY, x1, y1, x2, y2;
|
||||
|
||||
/*
|
||||
|
|
@ -511,8 +509,6 @@ DrawHand(
|
|||
double angle, cosangle, sinangle;
|
||||
double ws, wc;
|
||||
Position x, y, x1, y1, x2, y2;
|
||||
double cos ();
|
||||
double sin ();
|
||||
|
||||
/* A full circle is 2 PI radians.
|
||||
* Angles are measured from 12 o'clock, clockwise increasing.
|
||||
|
|
|
|||
Loading…
Reference in New Issue