Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
N
nx-libs
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 1
    • Issues 1
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • dimbor
  • nx-libs
  • Repository

Switch branch/tag
  • nx-libs
  • nx-X11
  • programs
  • Xserver
  • dix
  • atom.c
Find file
BlameHistoryPermalink
  • Mike Gabriel's avatar
    Xserver/dix/atom.c (et al.): Constify atom name strings. · 9c3669c6
    Mike Gabriel authored Feb 27, 2017
     Inspired by X.org commits:
    
     commit 08093c25a91c07ab8af7cece9bba738b827cfd1b
     Author: Alan Coopersmith <alan.coopersmith@oracle.com>
     Date:   Mon Oct 24 23:16:30 2011 -0700
    
        Convert some malloc + strncpy pairs into strndup calls
    Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: 's avatarJeremy Huddleston <jeremyhu@apple.com>
    
     commit 816b79dd061e9839cec94a4986a7820b70ca8a7f
     Author: Mikhail Gusarov <dottedmag@dottedmag.net>
     Date:   Thu May 13 03:45:21 2010 +0700
    
        Remove useless casts
    Signed-off-by: 's avatarMikhail Gusarov <dottedmag@dottedmag.net>
    Reviewed-by: 's avatarKeith Packard <keithp@keithp.com>
    
     This PR ships a tiny change in MakeAtom, that we adopted.
     We did not adopt the full commit.
    
     commit 5623c27700b7b23a8dbbd8c8f45e5d4fa0c667e3
     Author: Alan Coopersmith <alan.coopersmith@sun.com>
     Date:   Mon Feb 2 19:25:14 2009 -0800
    
        Constify atom name strings
    
        Changes MakeAtom to take a const char * and NameForAtom to return them,
        since many callers pass pointers to constant strings stored in read-only
        ELF sections.   Updates in-tree callers as necessary to clear const
        mismatch warnings introduced by this change.
    Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@sun.com>
    Acked-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
    Backported-to-NX-by: 's avatarMike Gabriel <mike.gabriel@das-netzwerkteam.de>
    9c3669c6
atom.c 5.28 KB
EditWeb IDE

Replace atom.c

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.