mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dsdm: resolve coverity warnings CID 86139 86255 86331 86345 86418 86517 86526 86567 86590 86616
This commit is contained in:
parent
2fc7807ee5
commit
4fc0bcef0f
1 changed files with 11 additions and 3 deletions
|
@ -305,7 +305,7 @@ GetDropInfoUsingProxyHandle(proxy_handle)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete a drop record */
|
/* Delete a drop record */
|
||||||
static
|
static void
|
||||||
ClearDropInfo(proxy_handle)
|
ClearDropInfo(proxy_handle)
|
||||||
Atom proxy_handle;
|
Atom proxy_handle;
|
||||||
{
|
{
|
||||||
|
@ -388,6 +388,7 @@ GetPropertyWindow(dpy, in_win, atom)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* startup initialization */
|
/* startup initialization */
|
||||||
|
void
|
||||||
ProxyInit(dpy, dsdm_win)
|
ProxyInit(dpy, dsdm_win)
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
Window dsdm_win;
|
Window dsdm_win;
|
||||||
|
@ -497,6 +498,7 @@ ProxyInit(dpy, dsdm_win)
|
||||||
|
|
||||||
/* Place the motif receiver property on the Openlook receiver's top
|
/* Place the motif receiver property on the Openlook receiver's top
|
||||||
level window */
|
level window */
|
||||||
|
int
|
||||||
AdvertiseMotifDropSite(dpy, win)
|
AdvertiseMotifDropSite(dpy, win)
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
Window win;
|
Window win;
|
||||||
|
@ -539,6 +541,7 @@ AdvertiseMotifDropSite(dpy, win)
|
||||||
(unsigned char *) &receiver_info, /* data */
|
(unsigned char *) &receiver_info, /* data */
|
||||||
sizeof(motif_receiver_t) /* size of data in bytes */
|
sizeof(motif_receiver_t) /* size of data in bytes */
|
||||||
);
|
);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Determine if the drop coordinate is within a rectangle */
|
/* Determine if the drop coordinate is within a rectangle */
|
||||||
|
@ -691,6 +694,7 @@ ConvertMotifAction(motif_action)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Process Motif ClientMessage */
|
/* Process Motif ClientMessage */
|
||||||
|
void
|
||||||
HandleMotifMessage(dpy, event)
|
HandleMotifMessage(dpy, event)
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
XClientMessageEvent *event;
|
XClientMessageEvent *event;
|
||||||
|
@ -786,7 +790,7 @@ HandleMotifMessage(dpy, event)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Process OLIT ClientMessage */
|
/* Process OLIT ClientMessage */
|
||||||
static
|
static void
|
||||||
HandleOlitTrigger(dpy, event)
|
HandleOlitTrigger(dpy, event)
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
XClientMessageEvent *event;
|
XClientMessageEvent *event;
|
||||||
|
@ -872,6 +876,7 @@ UpdateInitiatorAtom(dpy, win, channel, targets_index)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send Motif DROP_START ClientMessage to receiver */
|
/* Send Motif DROP_START ClientMessage to receiver */
|
||||||
|
void
|
||||||
SendStartDrop(dpy, src_win, drop_info)
|
SendStartDrop(dpy, src_win, drop_info)
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
Window src_win;
|
Window src_win;
|
||||||
|
@ -1068,6 +1073,7 @@ ContinueHandleOlitTrigger(dpy, data, length, drop_info)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get OLIT initiator's TARGETS */
|
/* Get OLIT initiator's TARGETS */
|
||||||
|
void
|
||||||
ProcessOlitInitiatorConversion(event, drop_info)
|
ProcessOlitInitiatorConversion(event, drop_info)
|
||||||
XSelectionEvent *event;
|
XSelectionEvent *event;
|
||||||
drop_info_t *drop_info;
|
drop_info_t *drop_info;
|
||||||
|
@ -1247,6 +1253,7 @@ ForwardConversion(event, drop_info)
|
||||||
Proxy agent reads the target names and the properties holding
|
Proxy agent reads the target names and the properties holding
|
||||||
the target data and places this info in a property on window A.
|
the target data and places this info in a property on window A.
|
||||||
*/
|
*/
|
||||||
|
void
|
||||||
ForwardMultpleSelectionRequest(event, drop_info)
|
ForwardMultpleSelectionRequest(event, drop_info)
|
||||||
XSelectionRequestEvent *event;
|
XSelectionRequestEvent *event;
|
||||||
drop_info_t *drop_info;
|
drop_info_t *drop_info;
|
||||||
|
@ -1277,6 +1284,7 @@ ForwardMultpleSelectionRequest(event, drop_info)
|
||||||
|
|
||||||
|
|
||||||
/* tell the initiator to clean up and do internal cleanup */
|
/* tell the initiator to clean up and do internal cleanup */
|
||||||
|
void
|
||||||
DndDone(dpy, status, drop_info)
|
DndDone(dpy, status, drop_info)
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
Atom status;
|
Atom status;
|
||||||
|
@ -1299,7 +1307,7 @@ DndDone(dpy, status, drop_info)
|
||||||
drop_info->time_stamp);
|
drop_info->time_stamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
ProxyMain(dpy, event)
|
ProxyMain(dpy, event)
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
XEvent *event;
|
XEvent *event;
|
||||||
|
|
Loading…
Reference in a new issue