diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
commit | ee442551e1531712226a3a3ba26afff466100bb5 (patch) | |
tree | d7907b07baecce7abe3940bec566b3bf56596f2f /zwgc/xselect.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'zwgc/xselect.c')
-rw-r--r-- | zwgc/xselect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/zwgc/xselect.c b/zwgc/xselect.c index 2579dc4..2192182 100644 --- a/zwgc/xselect.c +++ b/zwgc/xselect.c @@ -118,7 +118,8 @@ xselSetProperties(Display *dpy, } else if (target==XA_STRING) { char *selected; - if (selected = getSelectedText()) { + selected = getSelectedText(); + if (selected) { ChangeProp(XA_STRING,8,selected,string_Length(selected)); } else { /* This should only happen if the pasting client is out of @@ -179,8 +180,8 @@ xselProcessSelection(Display *dpy, #endif if ((ownership_start == CurrentTime) || - ((selreq->time != CurrentTime) && - (selreq->time < ownership_start) || + (((selreq->time != CurrentTime) && + (selreq->time < ownership_start)) || ((ownership_end != CurrentTime) && (ownership_end > ownership_start) && (selreq->time > ownership_end)))) |