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