xlockmore/xlockmore-cast-function-pointers.patch
Antonio Teixeira 6f617beb9c - Update to 5.79:
* pyraminx and oct mode extended to size 6 also some hardcoding of size
    removed and fixed some drawing errors.
- Fix builds
  * Remove xlockmore-strict-aliasing.patch
  * Add xlockmore-cast-function-pointers.patch

OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xlockmore?expand=0&rev=68
2024-09-15 14:00:07 +00:00

23 lines
1.0 KiB
Diff

Index: b/xlock/vtlock_proc.c
===================================================================
--- a/xlock/vtlock_proc.c
+++ b/xlock/vtlock_proc.c
@@ -188,7 +188,7 @@ find_x_proc(int disp_nr, dev_t lxdev, in
lencmd = strlen(xcmd_ref);
if ( stat( PROCDIR, &stbuf ) == -1 ) return( (pid_t)-1 );
namelist = (struct dirent **) malloc(sizeof (struct dirent *));
- if ((names = scan_dir(PROCDIR, &namelist, proc_dir_select, alphasort)) == -1 )
+ if ((names = scan_dir(PROCDIR, &namelist, proc_dir_select, (int (*)(const void *, const void *)) alphasort)) == -1 )
{
free(namelist);
return( (pid_t)-1 );
@@ -301,7 +301,7 @@ scan_x_fds( struct inode_ref *inotab, in
(void) sprintf(xfddir, PROCDIR "/%d/fd", proc);
namelist = (struct dirent **) malloc(sizeof (struct dirent *));
- if (scan_dir(xfddir, &namelist, NULL, alphasort) == -1) {
+ if (scan_dir(xfddir, &namelist, NULL, (int (*)(const void *, const void *)) alphasort) == -1) {
free(namelist);
return 0;
}