mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 03:53:01 -05:00
<MacTypes.h> says we should use NULL rather than nil in C, so do that.
[originally from svn r2444]
This commit is contained in:
parent
e13dfa3562
commit
e82053be5c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: mac.c,v 1.16 2003/01/04 00:31:04 ben Exp $ */
|
/* $Id: mac.c,v 1.17 2003/01/04 12:45:11 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Ben Harris
|
* Copyright (c) 1999 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -118,7 +118,7 @@ static void mac_startup(void) {
|
|||||||
/* Init TextEdit */
|
/* Init TextEdit */
|
||||||
TEInit();
|
TEInit();
|
||||||
/* Init Dialog Manager */
|
/* Init Dialog Manager */
|
||||||
InitDialogs(nil);
|
InitDialogs(NULL);
|
||||||
cold = 0;
|
cold = 0;
|
||||||
|
|
||||||
/* Get base system version (only used if there's no better selector) */
|
/* Get base system version (only used if there's no better selector) */
|
||||||
@ -609,7 +609,7 @@ void fatalbox(char *fmt, ...) {
|
|||||||
stuff[0] = vsprintf((char *)(&stuff[1]), fmt, ap);
|
stuff[0] = vsprintf((char *)(&stuff[1]), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
ParamText(stuff, NULL, NULL, NULL);
|
ParamText(stuff, NULL, NULL, NULL);
|
||||||
StopAlert(128, nil);
|
StopAlert(128, NULL);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -622,7 +622,7 @@ void modalfatalbox(char *fmt, ...) {
|
|||||||
stuff[0] = vsprintf((char *)(&stuff[1]), fmt, ap);
|
stuff[0] = vsprintf((char *)(&stuff[1]), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
ParamText(stuff, NULL, NULL, NULL);
|
ParamText(stuff, NULL, NULL, NULL);
|
||||||
StopAlert(128, nil);
|
StopAlert(128, NULL);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user