1. 24 Mar, 2019 1 commit
    • Alan Coopersmith's avatar
      Add explicit casts to clear implicit conversion warnings · 67a51275
      Alan Coopersmith authored
      xdpyinfo.c:173:17: warning: implicit conversion changes signedness: 'int' to
            'size_t' (aka 'unsigned long') [-Wsign-conversion]
              qsort(extlist, n, sizeof(char *), StrCmp);
              ~~~~~          ^
      xdpyinfo.c:183:26: warning: implicit conversion changes signedness: 'int' to
            'unsigned long' [-Wsign-conversion]
                  qe_cookies = calloc(n, sizeof(xcb_query_extension_cookie_t));
                               ~~~~~~ ^
      xdpyinfo.c:195:12: warning: implicit conversion loses integer precision:
            'unsigned long' to 'uint16_t' (aka 'unsigned short') [-Wconversion]
                                                           strlen(extlist[i]),
                                                           ^~~~~~~~~~~~~~~~~~
      xdpyinfo.c:1382:51: warning: implicit conversion loses integer precision:
            'unsigned long' to 'int' [-Wshorten-64-to-32]
              int extlen = strlen(known_extensions[i].extname) + 1;
                  ~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      67a51275
  2. 03 Mar, 2019 1 commit
  3. 22 Nov, 2018 1 commit
  4. 17 Nov, 2018 1 commit
  5. 26 Jan, 2017 3 commits
  6. 17 Apr, 2015 1 commit
  7. 18 Feb, 2015 2 commits
  8. 03 Jun, 2014 3 commits
  9. 27 Nov, 2013 2 commits
  10. 21 May, 2013 1 commit
  11. 11 Feb, 2013 3 commits
  12. 22 Jan, 2013 5 commits
  13. 05 Nov, 2012 1 commit
  14. 22 Oct, 2011 1 commit
  15. 29 Sep, 2011 4 commits
  16. 19 Jan, 2011 1 commit
  17. 13 Jan, 2011 1 commit
  18. 12 Jan, 2011 2 commits
  19. 07 Oct, 2010 1 commit
  20. 04 Oct, 2010 1 commit
    • Alan Coopersmith's avatar
      Use xcb for -queryExt instead of a round-trip per extension · 072fc46b
      Alan Coopersmith authored
      On a system with 30 extensions listed by xdpyinfo, truss -c
      reports this saves quite a few system calls by batching the
      QueryExtension requests instead of a round-trip for each one:
      
                            Xlib      xcb
      writev                  40       11
      poll                    80       22
      recv                   117       29
      total (*)              464      296
      
      (*) total includes all system calls, including many not shown since
      their count did not change significantly.   There was one additional
      set of open/mmap/close etc. for loading the added libX11-xcb library.
      
      Over a tcp connection, this reduced both the number of packets,
      and due to tcp packet header overhead, the overall amount of data:
      
                            Xlib      xcb
      TCP packets             93       35
      TCP bytes            11554     7726
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Reviewed-by: Jamey Sharp's avatarJamey Sharp <jamey@minilop.net>
      072fc46b
  21. 03 Oct, 2010 2 commits
  22. 24 Sep, 2010 2 commits