# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1320383212 0 # Node ID 47dbe605a03fd6456a4a9dccfe940e11c6427341 # Parent e73c41653de810374128f6b9ca29b28708b1d4d6 Removed an unused variable in the new code on OS/2 and Windows. Also fixed EMX/gcc building due to a missing return definition. diff -r e73c41653de8 -r 47dbe605a03f os2/dw.c --- a/os2/dw.c Fri Nov 04 03:30:27 2011 +0000 +++ b/os2/dw.c Fri Nov 04 05:06:52 2011 +0000 @@ -4700,7 +4700,7 @@ /* Internal function to make sure menu ID isn't in use */ int _menuid_allocated(int id) { - SignalHandler *prev = NULL, *tmp = Root; + SignalHandler *tmp = Root; while(tmp) { @@ -10507,6 +10507,11 @@ return TRUE; } +/* EMX Doesn't seem to define this? */ +#ifndef NERR_BufTooSmall +#define NERR_BufTooSmall 2123 +#endif + /* * Creates a new print object. * Parameters: diff -r e73c41653de8 -r 47dbe605a03f win/dw.c --- a/win/dw.c Fri Nov 04 03:30:27 2011 +0000 +++ b/win/dw.c Fri Nov 04 05:06:52 2011 +0000 @@ -4825,7 +4825,7 @@ /* Internal function to make sure menu ID isn't in use */ int _menuid_allocated(int id) { - SignalHandler *prev = NULL, *tmp = Root; + SignalHandler *tmp = Root; while(tmp) {