Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed a compile warning for the write function and fixed a return in an int function. #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mlx_new_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
** Login <[email protected]>
**
** Started on Mon Aug 14 15:29:14 2000 Charlie Root
** Last update Wed May 25 16:46:31 2011 Olivier Crouzet
** Last update Wed May 25 16:46:31 2011 Roger Marrero
*/


Expand All @@ -24,8 +24,10 @@ int mlx_X_error;
int shm_att_pb(Display *d,XErrorEvent *ev)
{
if (ev->request_code==146 && ev->minor_code==X_ShmAttach)
write(2,WARN_SHM_ATTACH,strlen(WARN_SHM_ATTACH));
if (write(2,WARN_SHM_ATTACH,strlen(WARN_SHM_ATTACH)))
return (-1);
mlx_X_error = 1;
return (0);
}


Expand Down