mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix some warnings.
This commit is contained in:
parent
c79224b367
commit
f0123efa84
44 changed files with 95 additions and 95 deletions
|
@ -189,10 +189,10 @@ int d_cmtype(int, int *, int); /* cmtype.c */
|
||||||
int d_connect(int, int); /* connect.c */
|
int d_connect(int, int); /* connect.c */
|
||||||
int d_cotype(int, int *, int); /* cotype.c */
|
int d_cotype(int, int *, int); /* cotype.c */
|
||||||
int d_crget(DB_ADDR *, int); /* crget.c */
|
int d_crget(DB_ADDR *, int); /* crget.c */
|
||||||
int d_crread(long, char *, int); /* crread.c */
|
int d_crread(long, void *, int); /* crread.c */
|
||||||
int d_crset(DB_ADDR *, int); /* crset.c */
|
int d_crset(DB_ADDR *, int); /* crset.c */
|
||||||
int d_crtype(int *, int); /* crtype.c */
|
int d_crtype(int *, int); /* crtype.c */
|
||||||
int d_crwrite(long, char *, int); /* crwrite.c */
|
int d_crwrite(long, void *, int); /* crwrite.c */
|
||||||
int d_csmget(int, DB_ADDR *, int); /* csmget.c */
|
int d_csmget(int, DB_ADDR *, int); /* csmget.c */
|
||||||
int d_csmread(int, long, char *, int);
|
int d_csmread(int, long, char *, int);
|
||||||
/* csmread.c */
|
/* csmread.c */
|
||||||
|
@ -217,7 +217,7 @@ int d_recnext(int); /* recnext.c */
|
||||||
int d_recprev(int); /* recprev.c */
|
int d_recprev(int); /* recprev.c */
|
||||||
int d_destroy(const char *); /* destroy.c */
|
int d_destroy(const char *); /* destroy.c */
|
||||||
int d_discon(int, int); /* discon.c */
|
int d_discon(int, int); /* discon.c */
|
||||||
int d_fillnew(int, const char *, int); /* fillnew.c */
|
int d_fillnew(int, const void *, int); /* fillnew.c */
|
||||||
int d_findco(int, int); /* findco.c */
|
int d_findco(int, int); /* findco.c */
|
||||||
int d_findfm(int, int); /* findfm.c */
|
int d_findfm(int, int); /* findfm.c */
|
||||||
int d_findlm(int, int); /* findlm.c */
|
int d_findlm(int, int); /* findlm.c */
|
||||||
|
@ -258,9 +258,9 @@ int d_reclast(int, int); /* reclast.c */
|
||||||
int d_reclock(int, char *, int); /* dblfcns.c */
|
int d_reclock(int, char *, int); /* dblfcns.c */
|
||||||
int d_reclstat(int, char *, int); /* dblfcns.c */
|
int d_reclstat(int, char *, int); /* dblfcns.c */
|
||||||
int d_recover(const char *); /* recover.c */
|
int d_recover(const char *); /* recover.c */
|
||||||
int d_recread(char *, int); /* recread.c */
|
int d_recread(void *, int); /* recread.c */
|
||||||
int d_recset(int, int); /* recset.c */
|
int d_recset(int, int); /* recset.c */
|
||||||
int d_recwrite(const char *, int); /* recwrite.c */
|
int d_recwrite(const void *, int); /* recwrite.c */
|
||||||
int d_renfile(const char *dbn, FILE_NO fno, const char *fnm); /* renfile.c */
|
int d_renfile(const char *dbn, FILE_NO fno, const char *fnm); /* renfile.c */
|
||||||
int d_retries(int); /* dblfcns.c */
|
int d_retries(int); /* dblfcns.c */
|
||||||
int d_rlbclr(void); /* dblfcns.c */
|
int d_rlbclr(void); /* dblfcns.c */
|
||||||
|
|
|
@ -41,6 +41,9 @@
|
||||||
*/
|
*/
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "boolpars.h"
|
#include "boolpars.h"
|
||||||
|
|
||||||
|
void yyerror(char *);
|
||||||
|
int yylex(void);
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%union {
|
%union {
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
int
|
int
|
||||||
d_crread(
|
d_crread(
|
||||||
long field, /* Field constant */
|
long field, /* Field constant */
|
||||||
char *data, /* Data area to contain field contents */
|
void *data, /* Data area to contain field contents */
|
||||||
int dbn /* database number */
|
int dbn /* database number */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
int
|
int
|
||||||
d_crwrite(
|
d_crwrite(
|
||||||
long field, /* field constant */
|
long field, /* field constant */
|
||||||
char *data, /* data area to contain field contents */
|
void *data, /* data area to contain field contents */
|
||||||
int dbn /* database number */
|
int dbn /* database number */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
int
|
int
|
||||||
d_fillnew(
|
d_fillnew(
|
||||||
int nrec, /* record number */
|
int nrec, /* record number */
|
||||||
const char *recval, /* record value */
|
const void *recval, /* record value */
|
||||||
int dbn /* database number */
|
int dbn /* database number */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
d_recread(
|
d_recread(
|
||||||
char *rec, /* ptr to record area */
|
void *rec, /* ptr to record area */
|
||||||
int dbn
|
int dbn
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
d_recwrite(
|
d_recwrite(
|
||||||
const char *rec, /* ptr to record area */
|
const void *rec, /* ptr to record area */
|
||||||
int dbn
|
int dbn
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1344,7 +1344,7 @@ Initialize(Widget ref_w, Widget w, Arg *args, Cardinal *num_args)
|
||||||
|
|
||||||
tw->term.log_on = False ;
|
tw->term.log_on = False ;
|
||||||
if (tw->term.logging) {
|
if (tw->term.logging) {
|
||||||
_DtTermPrimStartLog(tw) ;
|
_DtTermPrimStartLog((Widget) tw);
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug('T', timeStamp("TermPrim Initialize() finished"));
|
Debug('T', timeStamp("TermPrim Initialize() finished"));
|
||||||
|
@ -2675,7 +2675,7 @@ Destroy(Widget w)
|
||||||
|
|
||||||
/* flush the log file */
|
/* flush the log file */
|
||||||
if (tw->term.logging ) {
|
if (tw->term.logging ) {
|
||||||
_DtTermPrimCloseLog(tw) ;
|
_DtTermPrimCloseLog((Widget) tw);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tw->term.boldFont) {
|
if (tw->term.boldFont) {
|
||||||
|
|
|
@ -621,7 +621,7 @@ DoInsertWc(Widget w, wchar_t *wcBuffer, int wcBufferLen, Boolean *wrapped)
|
||||||
wcBuffer, /* newChars */
|
wcBuffer, /* newChars */
|
||||||
wcBufferLen, /* numChars */
|
wcBufferLen, /* numChars */
|
||||||
tpd->insertCharMode != DtTERM_INSERT_CHAR_OFF, /* insert flag */
|
tpd->insertCharMode != DtTERM_INSERT_CHAR_OFF, /* insert flag */
|
||||||
&returnChars, /* return char ptr */
|
(termChar **) (&returnChars), /* return char ptr */
|
||||||
&returnCount); /* return count ptr */
|
&returnCount); /* return count ptr */
|
||||||
|
|
||||||
if ((tpd->insertCharMode != DtTERM_INSERT_CHAR_ON_WRAP) || (returnCount <= 0)) {
|
if ((tpd->insertCharMode != DtTERM_INSERT_CHAR_ON_WRAP) || (returnCount <= 0)) {
|
||||||
|
@ -659,7 +659,7 @@ DoInsertWc(Widget w, wchar_t *wcBuffer, int wcBufferLen, Boolean *wrapped)
|
||||||
wcBuffer, /* newChars */
|
wcBuffer, /* newChars */
|
||||||
wcBufferLen, /* numChars */
|
wcBufferLen, /* numChars */
|
||||||
tpd->insertCharMode != DtTERM_INSERT_CHAR_OFF, /* insert flag */
|
tpd->insertCharMode != DtTERM_INSERT_CHAR_OFF, /* insert flag */
|
||||||
&returnChars, /* return char ptr */
|
(termChar **) (&returnChars), /* return char ptr */
|
||||||
&returnCount); /* return count ptr */
|
&returnCount); /* return count ptr */
|
||||||
(void) XtFree((char *) wcBuffer);
|
(void) XtFree((char *) wcBuffer);
|
||||||
(void) XtFree((char *) returnChars);
|
(void) XtFree((char *) returnChars);
|
||||||
|
|
|
@ -166,7 +166,7 @@ appfw_editor_init(
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Widget item[10];
|
Widget item[10];
|
||||||
int item_val[10];
|
XtArgVal item_val[10];
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -210,7 +210,7 @@ dnd_ed_editor_init(
|
||||||
{
|
{
|
||||||
DndEditorSettings dds = &dndEdInfo;
|
DndEditorSettings dds = &dndEdInfo;
|
||||||
Widget item[10];
|
Widget item[10];
|
||||||
int item_val[10];
|
XtArgVal item_val[10];
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -360,7 +360,7 @@ msg_editor_init(
|
||||||
{
|
{
|
||||||
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
||||||
Widget item[6];
|
Widget item[6];
|
||||||
int item_val[6];
|
XtArgVal item_val[6];
|
||||||
int i, n;
|
int i, n;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -218,7 +218,7 @@ panedwin_prop_init(
|
||||||
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
||||||
PropPanedWinSettingsRec *pws = &(prop_pw_settings_rec[type]);
|
PropPanedWinSettingsRec *pws = &(prop_pw_settings_rec[type]);
|
||||||
Widget item[2];
|
Widget item[2];
|
||||||
int item_val[2];
|
XtArgVal item_val[2];
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
if (type == AB_PROP_REVOLVING)
|
if (type == AB_PROP_REVOLVING)
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
#define TOK (bilP_load_get_token())
|
#define TOK (bilP_load_get_token())
|
||||||
|
|
||||||
|
void yyerror(char *);
|
||||||
|
int yylex(void);
|
||||||
%}
|
%}
|
||||||
/*
|
/*
|
||||||
* We assume that yacc spits out the symbols in the order they are
|
* We assume that yacc spits out the symbols in the order they are
|
||||||
|
|
|
@ -46,7 +46,6 @@
|
||||||
#include "patchlevel.h"
|
#include "patchlevel.h"
|
||||||
#include "calctool.h"
|
#include "calctool.h"
|
||||||
#include "ds_common.h"
|
#include "ds_common.h"
|
||||||
#include "calctool.h"
|
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
|
||||||
static double max_fix[4] = {
|
static double max_fix[4] = {
|
||||||
|
@ -1203,8 +1202,8 @@ make_number(int *MPnumber, BOOLEAN mkFix)
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
/* Default math library exception handling routine. */
|
/* Default math library exception handling routine. */
|
||||||
int
|
void
|
||||||
matherr(struct exception *exc)
|
math_err(void)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
char msg[100];
|
char msg[100];
|
||||||
|
@ -1232,7 +1231,6 @@ matherr(struct exception *exc)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
doerr(vstrs[(int) V_ERROR]) ;
|
doerr(vstrs[(int) V_ERROR]) ;
|
||||||
return(1) ; /* Value ignored. */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert string into an MP number. */
|
/* Convert string into an MP number. */
|
||||||
|
|
|
@ -636,6 +636,7 @@ void make_items(void);
|
||||||
void make_modewin(void);
|
void make_modewin(void);
|
||||||
void make_fin_registers(void);
|
void make_fin_registers(void);
|
||||||
void make_registers(int);
|
void make_registers(int);
|
||||||
|
void math_err(void);
|
||||||
void MPstr_to_num(char *, enum base_type, int *);
|
void MPstr_to_num(char *, enum base_type, int *);
|
||||||
void paren_disp(char);
|
void paren_disp(char);
|
||||||
void process_event(int);
|
void process_event(int);
|
||||||
|
|
|
@ -677,7 +677,7 @@ do_factorial(int *MPval, int *MPres) /* Calculate the factorial of MPval. */
|
||||||
}
|
}
|
||||||
mpcim(&i, MPa) ;
|
mpcim(&i, MPa) ;
|
||||||
mpcmi(MP1, &i) ;
|
mpcmi(MP1, &i) ;
|
||||||
if (!i) matherr((struct exception *) NULL) ;
|
if (!i) math_err() ;
|
||||||
else
|
else
|
||||||
while (i > 0)
|
while (i > 0)
|
||||||
{
|
{
|
||||||
|
@ -687,7 +687,7 @@ do_factorial(int *MPval, int *MPres) /* Calculate the factorial of MPval. */
|
||||||
i-- ;
|
i-- ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else matherr((struct exception *) NULL) ;
|
else math_err() ;
|
||||||
mpstr(MPa, MPres) ;
|
mpstr(MPa, MPres) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1323,7 +1323,7 @@ mb_clear_selected_calendar(
|
||||||
if (geditor_showing(e))
|
if (geditor_showing(e))
|
||||||
remove_from_gaccess_list(name, e);
|
remove_from_gaccess_list(name, e);
|
||||||
mb_deregister_names(name, c);
|
mb_deregister_names(name, c);
|
||||||
mb_refresh_canvas(c->browser, c);
|
mb_refresh_canvas(b, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
|
|
|
@ -942,7 +942,7 @@ rfp_form_flags_to_appt(RFP *rfp, Dtcm_appointment *a, char *name, int *flagsP)
|
||||||
memset(a->repeat_type, 0, sizeof(CSA_attribute));
|
memset(a->repeat_type, 0, sizeof(CSA_attribute));
|
||||||
|
|
||||||
_DtCm_set_sint32_attrval(rfp->repeat_type,
|
_DtCm_set_sint32_attrval(rfp->repeat_type,
|
||||||
&a->repeat_type->value);
|
(cms_attribute_value **) &a->repeat_type->value);
|
||||||
}
|
}
|
||||||
else a->repeat_type->value->item.sint32_value = rfp->repeat_type;
|
else a->repeat_type->value->item.sint32_value = rfp->repeat_type;
|
||||||
}
|
}
|
||||||
|
@ -958,7 +958,7 @@ rfp_form_flags_to_appt(RFP *rfp, Dtcm_appointment *a, char *name, int *flagsP)
|
||||||
|
|
||||||
memset(a->repeat_type, 0, sizeof(CSA_attribute));
|
memset(a->repeat_type, 0, sizeof(CSA_attribute));
|
||||||
|
|
||||||
_DtCm_set_sint32_attrval(rfp->repeat_type,&a->repeat_type->value);
|
_DtCm_set_sint32_attrval(rfp->repeat_type, (cms_attribute_value **) &a->repeat_type->value);
|
||||||
}
|
}
|
||||||
else a->repeat_type->value->item.sint32_value = rfp->repeat_type;
|
else a->repeat_type->value->item.sint32_value = rfp->repeat_type;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1351,7 +1351,7 @@ cm_print_appt_text(CMGraphicsInfo *gInfo, char *str,
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen(str);
|
_len = strlen(str);
|
||||||
_converter_( str, _len, &to, &to_len );
|
_converter_( str, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) )
|
if ( ( to != NULL ) && ( to_len != 0 ) )
|
||||||
str = to;
|
str = to;
|
||||||
|
|
||||||
|
@ -1578,7 +1578,7 @@ cm_print_todo_text(CMGraphicsInfo *gInfo, char *str1, CSA_sint32 as,
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen(str1);
|
_len = strlen(str1);
|
||||||
_converter_( str1, _len, &to, &to_len );
|
_converter_( str1, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) )
|
if ( ( to != NULL ) && ( to_len != 0 ) )
|
||||||
str1 = to;
|
str1 = to;
|
||||||
}
|
}
|
||||||
|
@ -2009,7 +2009,7 @@ local_dayname(Calendar *c, char **array_place, int dayNum)
|
||||||
dayCatIndex[dayNum], defaultDays[dayNum]);
|
dayCatIndex[dayNum], defaultDays[dayNum]);
|
||||||
|
|
||||||
_len = strlen( source );
|
_len = strlen( source );
|
||||||
_converter_( source, _len, &to, &to_len );
|
_converter_( source, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
str = euc_to_octal(to);
|
str = euc_to_octal(to);
|
||||||
} else {
|
} else {
|
||||||
|
@ -2041,7 +2041,7 @@ local_dayname3(Calendar *c, char **array_place, int dayNum)
|
||||||
dayCatIndex[dayNum], defaultDays[dayNum]);
|
dayCatIndex[dayNum], defaultDays[dayNum]);
|
||||||
|
|
||||||
_len = strlen( source );
|
_len = strlen( source );
|
||||||
_converter_( source, _len, &to, &to_len );
|
_converter_( source, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
str = euc_to_octal(to);
|
str = euc_to_octal(to);
|
||||||
} else {
|
} else {
|
||||||
|
@ -2089,7 +2089,7 @@ get_report_type_string(CMGraphicsInfo *gInfo)
|
||||||
defaultStrs[reportType]);
|
defaultStrs[reportType]);
|
||||||
|
|
||||||
_len = strlen( str );
|
_len = strlen( str );
|
||||||
_converter_( str, _len, &to, &to_len );
|
_converter_( str, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
str = to;
|
str = to;
|
||||||
}
|
}
|
||||||
|
@ -2367,7 +2367,7 @@ x_open_file(Calendar *c)
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen( gInfo->timestamp );
|
_len = strlen( gInfo->timestamp );
|
||||||
_converter_( gInfo->timestamp, _len, &to, &to_len );
|
_converter_( gInfo->timestamp, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) )
|
if ( ( to != NULL ) && ( to_len != 0 ) )
|
||||||
strncpy( gInfo->timestamp, to,
|
strncpy( gInfo->timestamp, to,
|
||||||
( BUFFERSIZE > to_len ) ? to_len : BUFFERSIZE - 1 );
|
( BUFFERSIZE > to_len ) ? to_len : BUFFERSIZE - 1 );
|
||||||
|
@ -2610,7 +2610,7 @@ x_print_header(void *gInfoP, char *buf, int pageNum, int numPages)
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen( buf );
|
_len = strlen( buf );
|
||||||
_converter_( buf, _len, &to, &to_len );
|
_converter_( buf, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
str = euc_to_octal(to);
|
str = euc_to_octal(to);
|
||||||
} else {
|
} else {
|
||||||
|
@ -2639,7 +2639,7 @@ x_print_header(void *gInfoP, char *buf, int pageNum, int numPages)
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen( str2 );
|
_len = strlen( str2 );
|
||||||
_converter_( str2, _len, &to, &to_len );
|
_converter_( str2, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
strncpy( str2, to,
|
strncpy( str2, to,
|
||||||
( BUFFERSIZE > to_len ) ? to_len : BUFFERSIZE );
|
( BUFFERSIZE > to_len ) ? to_len : BUFFERSIZE );
|
||||||
|
@ -2654,7 +2654,7 @@ x_print_header(void *gInfoP, char *buf, int pageNum, int numPages)
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen( str );
|
_len = strlen( str );
|
||||||
_converter_( str, _len, &to, &to_len );
|
_converter_( str, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
str = to;
|
str = to;
|
||||||
}
|
}
|
||||||
|
@ -2717,7 +2717,7 @@ x_day_header (void *gInfoP)
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen( str );
|
_len = strlen( str );
|
||||||
_converter_( str, _len, &to, &to_len );
|
_converter_( str, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
str = to;
|
str = to;
|
||||||
}
|
}
|
||||||
|
@ -2737,7 +2737,7 @@ x_day_header (void *gInfoP)
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen( str );
|
_len = strlen( str );
|
||||||
_converter_( str, _len, &to, &to_len );
|
_converter_( str, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
str = to;
|
str = to;
|
||||||
}
|
}
|
||||||
|
@ -3249,7 +3249,7 @@ x_print_month(void *gInfoP, int mon, int yr, int x1,
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen(str);
|
_len = strlen(str);
|
||||||
_converter_( str, _len, &to, &to_len );
|
_converter_( str, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
cm_strcpy(str, to);
|
cm_strcpy(str, to);
|
||||||
}
|
}
|
||||||
|
@ -3574,7 +3574,7 @@ x_week_daynames(void *gInfoP, char *dayName, int dayIndex, Boolean more)
|
||||||
unsigned long _len;
|
unsigned long _len;
|
||||||
|
|
||||||
_len = strlen(dayName);
|
_len = strlen(dayName);
|
||||||
_converter_( dayName, _len, &to, &to_len );
|
_converter_( dayName, _len, (void **) &to, &to_len );
|
||||||
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
if ( ( to != NULL ) && ( to_len != 0 ) ) {
|
||||||
dayName = to;
|
dayName = to;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
void assert_hometopic_exists(void)
|
void assert_hometopic_exists(void)
|
||||||
{
|
{
|
||||||
static const char hometopic[] = "-HOMETOPIC";
|
static const char hometopic[] = "-HOMETOPIC";
|
||||||
|
|
|
@ -165,8 +165,8 @@
|
||||||
m_free(wc_2,"wide character string");
|
m_free(wc_2,"wide character string");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
m_piaction("UNDEFINED MACHINE",
|
m_piaction((M_WCHAR *) "UNDEFINED MACHINE",
|
||||||
"m-machine",
|
(M_WCHAR *) "m-machine",
|
||||||
M_SDATA) ;
|
M_SDATA) ;
|
||||||
#endif
|
#endif
|
||||||
</CODE>
|
</CODE>
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
#define TAGDOTOPT "helptag.opt"
|
#define TAGDOTOPT "helptag.opt"
|
||||||
#define DOTOPT ".opt"
|
#define DOTOPT ".opt"
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
void options(LOGICAL filelenonly)
|
void options(LOGICAL filelenonly)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
* Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/* $XConsortium: proto.h /main/3 1995/11/08 09:42:21 rswiston $ */
|
/* $XConsortium: proto.h /main/3 1995/11/08 09:42:21 rswiston $ */
|
||||||
|
void chksnb(void);
|
||||||
|
|
||||||
int m_actgetc(void);
|
int m_actgetc(void);
|
||||||
|
|
||||||
void m_adjuststate(void);
|
void m_adjuststate(void);
|
||||||
|
@ -31,6 +33,8 @@ void m_attval(M_WCHAR *string);
|
||||||
|
|
||||||
LOGICAL m_attvonly(M_WCHAR *string);
|
LOGICAL m_attvonly(M_WCHAR *string);
|
||||||
|
|
||||||
|
void m_mberr1(const char *text, const char *arg);
|
||||||
|
|
||||||
int m_checkstart(M_ELEMENT val);
|
int m_checkstart(M_ELEMENT val);
|
||||||
|
|
||||||
LOGICAL m_ckend(M_ELEMENT val, LOGICAL neednet);
|
LOGICAL m_ckend(M_ELEMENT val, LOGICAL neednet);
|
||||||
|
|
|
@ -47,8 +47,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include "entity2.h"
|
#include "entity2.h"
|
||||||
#include "sref.h"
|
#include "sref.h"
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
/* Actually read a character from an input stream */
|
/* Actually read a character from an input stream */
|
||||||
int m_actgetc(void)
|
int m_actgetc(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,8 +30,6 @@
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
#include "proto.h"
|
#include "proto.h"
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
void assert_hometopic_exists(void)
|
void assert_hometopic_exists(void)
|
||||||
{
|
{
|
||||||
static const char hometopic[] = "-HOMETOPIC";
|
static const char hometopic[] = "-HOMETOPIC";
|
||||||
|
|
|
@ -154,8 +154,8 @@
|
||||||
m_free(wc_2,"wide character string");
|
m_free(wc_2,"wide character string");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
m_piaction("UNDEFINED MACHINE",
|
m_piaction((M_WCHAR *) "UNDEFINED MACHINE",
|
||||||
"m-machine",
|
(M_WCHAR *) "m-machine",
|
||||||
M_SDATA) ;
|
M_SDATA) ;
|
||||||
#endif
|
#endif
|
||||||
<\CODE>
|
<\CODE>
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
#include "userinc.h"
|
#include "userinc.h"
|
||||||
#include "globdec.h"
|
#include "globdec.h"
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
#if defined(_AIX) || defined(sun)
|
#if defined(_AIX) || defined(sun)
|
||||||
/* get definition of getenv(3c) for getting of environment variables */
|
/* get definition of getenv(3c) for getting of environment variables */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
* Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/* $XConsortium: proto.h /main/3 1995/11/08 10:24:42 rswiston $ */
|
/* $XConsortium: proto.h /main/3 1995/11/08 10:24:42 rswiston $ */
|
||||||
|
void chksnb(void);
|
||||||
|
|
||||||
int m_actgetc(void);
|
int m_actgetc(void);
|
||||||
|
|
||||||
void m_adjuststate(void);
|
void m_adjuststate(void);
|
||||||
|
@ -172,6 +174,8 @@ int main(int argc, char **argv);
|
||||||
|
|
||||||
void *m_malloc(int size, char *msg);
|
void *m_malloc(int size, char *msg);
|
||||||
|
|
||||||
|
void m_mberr1(const char *text, const char *arg);
|
||||||
|
|
||||||
void m_missingtagc(int c, M_HOLDTYPE dchar, LOGICAL start);
|
void m_missingtagc(int c, M_HOLDTYPE dchar, LOGICAL start);
|
||||||
|
|
||||||
LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label);
|
LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label);
|
||||||
|
|
|
@ -47,8 +47,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include "entity2.h"
|
#include "entity2.h"
|
||||||
#include "sref.h"
|
#include "sref.h"
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
/* Actually read a character from an input stream */
|
/* Actually read a character from an input stream */
|
||||||
int m_actgetc(void)
|
int m_actgetc(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -54,7 +54,7 @@ void OpenTag(LOGICAL hasAttributes,
|
||||||
|
|
||||||
void CloseTag(LOGICAL newlineOK);
|
void CloseTag(LOGICAL newlineOK);
|
||||||
|
|
||||||
void ImpliedlAttribute(char *name,
|
void ImpliedAttribute(char *name,
|
||||||
M_WCHAR *value);
|
M_WCHAR *value);
|
||||||
|
|
||||||
void RequiredAttribute(char *name,
|
void RequiredAttribute(char *name,
|
||||||
|
|
|
@ -31,9 +31,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
|
|
||||||
/* Interpret options from command line and specified files */
|
/* Interpret options from command line and specified files */
|
||||||
#define OPTLEN 512 /* If OPTLEN changes, change fscanf call below */
|
#define OPTLEN 512 /* If OPTLEN changes, change fscanf call below */
|
||||||
#define TAGDOTOPT "helptag.opt"
|
#define TAGDOTOPT "helptag.opt"
|
||||||
|
|
|
@ -72,8 +72,8 @@ void main(int argc, char **argv)
|
||||||
if (! m_curcon) {
|
if (! m_curcon) {
|
||||||
if (m_token != M_ENDFILE) {
|
if (m_token != M_ENDFILE) {
|
||||||
m_error("Parsing table error") ;
|
m_error("Parsing table error") ;
|
||||||
sprintf(buffer, parserr, m_token, m_prevcon, m_scanval) ;
|
sprintf((char *) buffer, parserr, m_token, m_prevcon, m_scanval) ;
|
||||||
m_errline(buffer) ;
|
m_errline((char *) buffer) ;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_error("Unexpected end of document") ;
|
m_error("Unexpected end of document") ;
|
||||||
|
@ -92,17 +92,17 @@ void main(int argc, char **argv)
|
||||||
m_aftereod = TRUE ;
|
m_aftereod = TRUE ;
|
||||||
}
|
}
|
||||||
if (m_scantrace) {
|
if (m_scantrace) {
|
||||||
sprintf(buffer, sopt,
|
sprintf((char *) buffer, sopt,
|
||||||
m_prevcon, m_token, m_curcon, m_scanval ? m_scanval : ' ',
|
m_prevcon, m_token, m_curcon, m_scanval ? m_scanval : ' ',
|
||||||
m_scanval, m_line[m_sysecnt], m_netlevel) ;
|
m_scanval, m_line[m_sysecnt], m_netlevel) ;
|
||||||
m_trace(buffer) ;
|
m_trace((char *) buffer) ;
|
||||||
if (m_token == M_NAME) {
|
if (m_token == M_NAME) {
|
||||||
sprintf(buffer, name, m_name) ;
|
sprintf((char *) buffer, name, m_name) ;
|
||||||
m_trace(buffer) ;
|
m_trace((char *) buffer) ;
|
||||||
}
|
}
|
||||||
if (m_token == M_LITERAL) {
|
if (m_token == M_LITERAL) {
|
||||||
sprintf(buffer, literal, m_literal) ;
|
sprintf((char *) buffer, literal, m_literal) ;
|
||||||
m_trace(buffer) ;
|
m_trace((char *) buffer) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#include "case.c"
|
#include "case.c"
|
||||||
|
|
|
@ -172,6 +172,8 @@ void main(int argc, char **argv);
|
||||||
|
|
||||||
void *m_malloc(int size, char *msg);
|
void *m_malloc(int size, char *msg);
|
||||||
|
|
||||||
|
void m_mberr1(const char *text, const char *arg);
|
||||||
|
|
||||||
void m_missingtagc(int c, M_HOLDTYPE dchar, LOGICAL start);
|
void m_missingtagc(int c, M_HOLDTYPE dchar, LOGICAL start);
|
||||||
|
|
||||||
LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label);
|
LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label);
|
||||||
|
|
|
@ -47,8 +47,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||||
#include "entity2.h"
|
#include "entity2.h"
|
||||||
#include "sref.h"
|
#include "sref.h"
|
||||||
|
|
||||||
void m_mberr1(char *text, const char *arg);
|
|
||||||
|
|
||||||
/* Actually read a character from an input stream */
|
/* Actually read a character from an input stream */
|
||||||
int m_actgetc(void)
|
int m_actgetc(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -147,7 +147,7 @@ static int scanHostlist(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure,
|
char *closure,
|
||||||
int depth,
|
int depth,
|
||||||
int broadcast) ;
|
int broadcast) ;
|
||||||
|
@ -162,7 +162,7 @@ static int indirectAlias(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure,
|
char *closure,
|
||||||
int depth,
|
int depth,
|
||||||
int broadcast) ;
|
int broadcast) ;
|
||||||
|
@ -625,7 +625,7 @@ scanHostlist(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure,
|
char *closure,
|
||||||
int depth,
|
int depth,
|
||||||
int broadcast )
|
int broadcast )
|
||||||
|
@ -675,7 +675,7 @@ indirectAlias(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure,
|
char *closure,
|
||||||
int depth,
|
int depth,
|
||||||
int broadcast )
|
int broadcast )
|
||||||
|
@ -709,7 +709,7 @@ ForEachMatchingIndirectHost(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(CARD16, struct _ARRAY8 *, char *),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure )
|
char *closure )
|
||||||
{
|
{
|
||||||
int haveLocalhost = 0;
|
int haveLocalhost = 0;
|
||||||
|
@ -828,7 +828,7 @@ ForEachChooserHost(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure )
|
char *closure )
|
||||||
{
|
{
|
||||||
int haveLocalhost = 0;
|
int haveLocalhost = 0;
|
||||||
|
|
|
@ -152,7 +152,7 @@ struct AuthProtocol {
|
||||||
unsigned short name_length;
|
unsigned short name_length;
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
int (*InitAuth)(
|
void (*InitAuth)(
|
||||||
#if NeedWidePrototypes
|
#if NeedWidePrototypes
|
||||||
unsigned int name_len,
|
unsigned int name_len,
|
||||||
#else
|
#else
|
||||||
|
@ -168,7 +168,10 @@ struct AuthProtocol {
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
char *name) ;
|
char *name) ;
|
||||||
|
|
||||||
void (*GetXdmcpAuth)();
|
void (*GetXdmcpAuth)(
|
||||||
|
struct protoDisplay *pdpy,
|
||||||
|
unsigned short authorizationNameLen,
|
||||||
|
char *authorizationName);
|
||||||
int inited;
|
int inited;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -428,7 +428,7 @@ RunChooser (
|
||||||
args = parseArgs (args, buf);
|
args = parseArgs (args, buf);
|
||||||
ForEachChooserHost (&d->clientAddr,
|
ForEachChooserHost (&d->clientAddr,
|
||||||
d->connectionType,
|
d->connectionType,
|
||||||
(int (*)()) AddChooserHost,
|
AddChooserHost,
|
||||||
(char *) &args);
|
(char *) &args);
|
||||||
env = systemEnv (d, (char *) 0, (char *) 0);
|
env = systemEnv (d, (char *) 0, (char *) 0);
|
||||||
if (d->authFile)
|
if (d->authFile)
|
||||||
|
|
|
@ -314,7 +314,7 @@ struct display {
|
||||||
|
|
||||||
/* XDMCP state */
|
/* XDMCP state */
|
||||||
CARD32 sessionID; /* ID of active session */
|
CARD32 sessionID; /* ID of active session */
|
||||||
struct sockaddr *peer; /* sockaddr of display peer */
|
XdmcpNetaddr peer; /* sockaddr of display peer */
|
||||||
int peerlen; /* length of peer name */
|
int peerlen; /* length of peer name */
|
||||||
struct sockaddr *from; /* XDMCP port of display */
|
struct sockaddr *from; /* XDMCP port of display */
|
||||||
int fromlen;
|
int fromlen;
|
||||||
|
@ -519,7 +519,7 @@ extern void ForEachChooserHost(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure) ;
|
char *closure) ;
|
||||||
extern int ForEachMatchingIndirectHost(
|
extern int ForEachMatchingIndirectHost(
|
||||||
ARRAY8Ptr clientAddress,
|
ARRAY8Ptr clientAddress,
|
||||||
|
@ -528,7 +528,7 @@ extern int ForEachMatchingIndirectHost(
|
||||||
#else
|
#else
|
||||||
CARD16 connectionType,
|
CARD16 connectionType,
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
int (*function)(CARD16, struct _ARRAY8 *, char *),
|
void (*function)(CARD16, struct _ARRAY8 *, char *),
|
||||||
char *closure) ;
|
char *closure) ;
|
||||||
extern int ScanAccessDatabase( void ) ;
|
extern int ScanAccessDatabase( void ) ;
|
||||||
extern int UseChooser(
|
extern int UseChooser(
|
||||||
|
@ -703,7 +703,7 @@ extern Xauth * MitGetAuth(
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
char *name) ;
|
char *name) ;
|
||||||
|
|
||||||
extern int MitInitAuth(
|
extern void MitInitAuth(
|
||||||
#if NeedWidePrototypes
|
#if NeedWidePrototypes
|
||||||
unsigned int name_len,
|
unsigned int name_len,
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -95,16 +95,15 @@ static int auth_name_len;
|
||||||
void GenerateAuthData (char *auth, int len); // genauth.c
|
void GenerateAuthData (char *auth, int len); // genauth.c
|
||||||
|
|
||||||
#if NeedWidePrototypes
|
#if NeedWidePrototypes
|
||||||
int MitInitAuth (unsigned int name_len, char *name)
|
void MitInitAuth (unsigned int name_len, char *name)
|
||||||
#else
|
#else
|
||||||
int MitInitAuth (unsigned short name_len, char *name)
|
void MitInitAuth (unsigned short name_len, char *name)
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
{
|
{
|
||||||
if (name_len > 256)
|
if (name_len > 256)
|
||||||
name_len = 256;
|
name_len = 256;
|
||||||
auth_name_len = name_len;
|
auth_name_len = name_len;
|
||||||
memmove( auth_name, name, name_len);
|
memmove( auth_name, name, name_len);
|
||||||
return(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if NeedWidePrototypes
|
#if NeedWidePrototypes
|
||||||
|
|
|
@ -333,7 +333,7 @@ GetRemoteAddress( struct display *d, int fd )
|
||||||
d->peerlen = 0;
|
d->peerlen = 0;
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
d->peer = (struct sockaddr *) malloc (len);
|
d->peer = malloc (len);
|
||||||
if (d->peer)
|
if (d->peer)
|
||||||
{
|
{
|
||||||
bcopy (buf, (char *) d->peer, len);
|
bcopy (buf, (char *) d->peer, len);
|
||||||
|
|
|
@ -239,7 +239,8 @@ void XdmGetXdmcpAuth (struct protoDisplay *pdpy, unsigned short authorizationNam
|
||||||
XdmPrintDataHex ("Accept packet auth", xdmcpauth->data, xdmcpauth->data_length);
|
XdmPrintDataHex ("Accept packet auth", xdmcpauth->data, xdmcpauth->data_length);
|
||||||
XdmPrintDataHex ("Auth file auth", fileauth->data, fileauth->data_length);
|
XdmPrintDataHex ("Auth file auth", fileauth->data, fileauth->data_length);
|
||||||
/* encrypt the session key for its trip back to the server */
|
/* encrypt the session key for its trip back to the server */
|
||||||
XdmcpWrap (xdmcpauth->data, &pdpy->key, xdmcpauth->data, 8);
|
XdmcpWrap ((unsigned char *)xdmcpauth->data, (unsigned char *)&pdpy->key,
|
||||||
|
(unsigned char *)xdmcpauth->data, 8);
|
||||||
pdpy->fileAuthorization = fileauth;
|
pdpy->fileAuthorization = fileauth;
|
||||||
pdpy->xdmcpAuthorization = xdmcpauth;
|
pdpy->xdmcpAuthorization = xdmcpauth;
|
||||||
}
|
}
|
||||||
|
@ -326,14 +327,14 @@ int XdmCheckAuthentication (struct protoDisplay *pdpy, ARRAY8Ptr displayID,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (authenticationData->length != 8)
|
if (authenticationData->length != 8)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
XdmcpUnwrap (authenticationData->data, &pdpy->key,
|
XdmcpUnwrap (authenticationData->data, (unsigned char *)&pdpy->key,
|
||||||
authenticationData->data, 8);
|
authenticationData->data, 8);
|
||||||
XdmPrintArray8Hex ("Request packet auth", authenticationData);
|
XdmPrintArray8Hex ("Request packet auth", authenticationData);
|
||||||
if (!XdmcpCopyARRAY8(authenticationData, &pdpy->authenticationData))
|
if (!XdmcpCopyARRAY8(authenticationData, &pdpy->authenticationData))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
incoming = (XdmAuthKeyPtr) authenticationData->data;
|
incoming = (XdmAuthKeyPtr) authenticationData->data;
|
||||||
XdmcpIncrementKey (incoming);
|
XdmcpIncrementKey (incoming);
|
||||||
XdmcpWrap (authenticationData->data, &pdpy->key,
|
XdmcpWrap (authenticationData->data, (unsigned char *)&pdpy->key,
|
||||||
authenticationData->data, 8);
|
authenticationData->data, 8);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,7 @@ AnyWellKnownSockets (void)
|
||||||
static XdmcpBuffer buffer;
|
static XdmcpBuffer buffer;
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
static int
|
static void
|
||||||
sendForward (CARD16 connectionType, ARRAY8Ptr address, char *closure)
|
sendForward (CARD16 connectionType, ARRAY8Ptr address, char *closure)
|
||||||
{
|
{
|
||||||
#ifdef AF_INET
|
#ifdef AF_INET
|
||||||
|
@ -198,7 +198,7 @@ sendForward (CARD16 connectionType, ARRAY8Ptr address, char *closure)
|
||||||
in_addr.sin_family = AF_INET;
|
in_addr.sin_family = AF_INET;
|
||||||
in_addr.sin_port = htons ((short) XDM_UDP_PORT);
|
in_addr.sin_port = htons ((short) XDM_UDP_PORT);
|
||||||
if (address->length != 4)
|
if (address->length != 4)
|
||||||
return 0;
|
return;
|
||||||
memmove( (char *) &in_addr.sin_addr, address->data, address->length);
|
memmove( (char *) &in_addr.sin_addr, address->data, address->length);
|
||||||
addrlen = sizeof (struct sockaddr_in);
|
addrlen = sizeof (struct sockaddr_in);
|
||||||
break;
|
break;
|
||||||
|
@ -207,10 +207,10 @@ sendForward (CARD16 connectionType, ARRAY8Ptr address, char *closure)
|
||||||
case FamilyDECnet:
|
case FamilyDECnet:
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
return 0;
|
return;
|
||||||
}
|
}
|
||||||
XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)addr, addrlen);
|
XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)addr, addrlen);
|
||||||
return 0;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char *NetaddrAddress();
|
extern char *NetaddrAddress();
|
||||||
|
|
|
@ -167,7 +167,7 @@ ttsnoop.C ttsnoop.h dtb_utils.c dtb_utils.h: ttsnoop.bip ttsnoop.C.src
|
||||||
$(SED) \
|
$(SED) \
|
||||||
-e 's/\(MoreButton;\)/\1Boolean _DtCanHelp( const char * );/' \
|
-e 's/\(MoreButton;\)/\1Boolean _DtCanHelp( const char * );/' \
|
||||||
-e 's/\(XtManageChild(Quick_help\)/XtSetSensitive(MoreButton,_DtCanHelp(help_data->help_text));\1/' \
|
-e 's/\(XtManageChild(Quick_help\)/XtSetSensitive(MoreButton,_DtCanHelp(help_data->help_text));\1/' \
|
||||||
-e 's/\(buffer, vol, loc;\)/\1Boolean _DtHelped( Widget );/' \
|
-e 's/\(buffer, vol = NULL, loc = NULL;\)/\1Boolean _DtHelped( Widget );/' \
|
||||||
-e 's/\(if( (cp=strrchr\)/if (_DtHelped( help_dialog)) return;\1/' \
|
-e 's/\(if( (cp=strrchr\)/if (_DtHelped( help_dialog)) return;\1/' \
|
||||||
dtb_utils.c > dtb_utils.c.patched
|
dtb_utils.c > dtb_utils.c.patched
|
||||||
mv dtb_utils.c.patched dtb_utils.c
|
mv dtb_utils.c.patched dtb_utils.c
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue