mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
OpenBSD patches for dtpdmd and dtprintinfo.
Casts, #ifdefs, SIGCLD ...
This commit is contained in:
parent
d418376944
commit
76984653b4
8 changed files with 15 additions and 13 deletions
|
@ -425,7 +425,7 @@ void mgr_launch_pdm( XpPdmServiceRec *rec )
|
|||
sigemptyset(&svec.sa_mask);
|
||||
svec.sa_flags = 0;
|
||||
svec.sa_handler = SIG_DFL;
|
||||
(void) sigaction(SIGCLD, &svec, (struct sigaction *) NULL);
|
||||
(void) sigaction(SIGCHLD, &svec, (struct sigaction *) NULL);
|
||||
|
||||
for (i=3; i < FOPEN_MAX; i++) {
|
||||
if ((i != rec->message_pipe[1]) &&
|
||||
|
|
|
@ -324,16 +324,16 @@ void DtApp::SaveYourSelf()
|
|||
|
||||
save_state = true;
|
||||
|
||||
char *value = window->setPrefD->ShowOnlyMyJobs() ? "1" : "0";
|
||||
char *value = window->setPrefD->ShowOnlyMyJobs() ? (char *)"1" : (char *)"0";
|
||||
Save("ShowOnlyMine", value);
|
||||
|
||||
value = window->setPrefD->ShowStatusLine() ? "1" : "0";
|
||||
value = window->setPrefD->ShowStatusLine() ? (char *)"1" : (char *)"0";
|
||||
Save("ShowMessageLine", value);
|
||||
|
||||
value = window->setPrefD->ShowDetailsLabel() ? "1" : "0";
|
||||
value = window->setPrefD->ShowDetailsLabel() ? (char *)"1" : (char *)"0";
|
||||
Save("ShowDetailsLabel", value);
|
||||
|
||||
value = window->setPrefD->ShowStatusFlags() ? "1" : "0";
|
||||
value = window->setPrefD->ShowStatusFlags() ? (char *)"1" : (char *)"0";
|
||||
Save("ShowProblemFlag", value);
|
||||
|
||||
char interval[9];
|
||||
|
@ -357,10 +357,10 @@ void DtApp::SaveYourSelf()
|
|||
queues = (DtPrinterIcon **) window->container->Children();
|
||||
for (i = 0; i < window->container->NumChildren(); i++)
|
||||
{
|
||||
value = queues[i]->Visible() ? "1" : "0";
|
||||
value = queues[i]->Visible() ? (char *)"1" : (char *)"0";
|
||||
sprintf(attribute, "%s.Visible", queues[i]->QueueObj()->Name());
|
||||
Save(attribute, value);
|
||||
value = queues[i]->Open() ? "1" : "0";
|
||||
value = queues[i]->Open() ? (char *)"1" : (char *)"0";
|
||||
sprintf(attribute, "%s.Open", queues[i]->QueueObj()->Name());
|
||||
Save(attribute, value);
|
||||
}
|
||||
|
|
|
@ -174,7 +174,7 @@ char *DtPrinterIcon::Description()
|
|||
|
||||
sprintf(buf, "%s_Print", queue->Name());
|
||||
char *desc = DtActionDescription(buf);
|
||||
return (desc ? desc : "");
|
||||
return (desc ? desc : (char *)"");
|
||||
}
|
||||
|
||||
void DtPrinterIcon::PrintQueueUp(boolean _flag)
|
||||
|
|
|
@ -59,7 +59,7 @@ class DtPrinterContainer : public Container
|
|||
: Container(category, parent, name, SCROLLED_HORIZONTAL_ROW_COLUMN) { }
|
||||
~DtPrinterContainer() { delete dnd; }
|
||||
|
||||
boolean DtPrinterContainer::SetVisiblity(boolean flag)
|
||||
boolean SetVisiblity(boolean flag)
|
||||
{
|
||||
Container::SetVisiblity(flag);
|
||||
dnd->UpdateActivity(flag);
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#define boolean boolean_t
|
||||
#define true B_TRUE
|
||||
#define false B_FALSE
|
||||
#elif defined(linux)
|
||||
#elif defined(linux) || defined(CSRG_BASED)
|
||||
#define false 0
|
||||
#define true 0
|
||||
#define boolean int
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#define boolean boolean_t
|
||||
#define true B_TRUE
|
||||
#define false B_FALSE
|
||||
#elif defined(linux)
|
||||
#elif defined(linux) || defined(CSRG_BASED)
|
||||
#define false 0
|
||||
#define true 0
|
||||
#define boolean int
|
||||
|
|
|
@ -774,7 +774,7 @@ void LocalPrintJobs(char *printer, char **return_job_list, int *return_n_jobs)
|
|||
}
|
||||
#endif // HP LOCAL PARSER
|
||||
|
||||
#if defined(__osf__) || defined(linux)
|
||||
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
|
||||
//
|
||||
// DEC/OSF1 PARSER - Output from "lpstat -o<printer>
|
||||
//
|
||||
|
@ -870,7 +870,7 @@ void LocalPrintJobs(char *printer, char **return_job_list, int *return_n_jobs)
|
|||
#if defined(__osf__)
|
||||
sprintf(buf, "lpstat -o%s", printer);
|
||||
#endif
|
||||
#if defined(linux)
|
||||
#if defined(linux) || defined(CSRG_BASED)
|
||||
sprintf(buf, "lpq -P%s", printer);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -38,7 +38,9 @@
|
|||
#include <sys/wait.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#if !defined(CSRG_BASED)
|
||||
#include <values.h>
|
||||
#endif
|
||||
#ifdef _AIX
|
||||
#include <strings.h> /* need to get bzero defined */
|
||||
#endif /* _AIX */
|
||||
|
|
Loading…
Reference in a new issue