Skip to content

Commit cd62c99

Browse files
committed
Apply patch from PR eserte#91.
1 parent d2afb41 commit cd62c99

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

config/signedchar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
main()
1+
int main(void)
22
{
33
signed char x = 'a';
44
return (x - 'a');

config/unsigned.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
#include <stdio.h>
12
int main()
23
{
34
char x[] = "\377";
45
if (x[0] > 0)
56
{
67
printf("char is unsigned type\n");
7-
exit(0);
8+
return 0;
89
}
910
else
1011
{
1112
printf("char is signed type\n");
12-
exit(1);
13+
return 1;
1314
}
1415
}
1516

pTk/config/Hstrdup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ int main()
66
{char *e;
77
char *p = strdup(STRING);
88
if (!p || strcmp(p,STRING))
9-
exit(1);
9+
return 1;
1010
return 0;
1111
}
1212

pTk/config/Hstrtoul.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <stdlib.h>
2+
#include <string.h>
23

34
int main()
45
{char *e;

pTk/mTk/generic/tkEvent.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ TkEventDeadWindow(winPtr)
11531153
Time
11541154
TkCurrentTime(dispPtr, fallbackCurrent)
11551155
TkDisplay *dispPtr; /* Display for which the time is desired. */
1156+
int fallbackCurrent;
11561157
{
11571158
register XEvent *eventPtr;
11581159
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)

pTk/mTk/generic/tkImage.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,8 @@ int x;
10831083
int y;
10841084
int width;
10851085
int height;
1086+
int imgWidth;
1087+
int imgHeight;
10861088
{
10871089
Tk_Tile tile = (Tk_Tile) clientData;
10881090
Tk_TileChange *handler;

0 commit comments

Comments
 (0)