1 diff -rupN build//coreif.c tmp/coreif.c
2 --- build//coreif.c 2006-11-07 19:51:11.000000000 +0000
3 +++ tmp/coreif.c 2010-12-04 16:44:44.146666460 +0000
4 @@ -504,9 +504,12 @@ NC_UpdateWindowSettings(long WindowSetti
5 WindowSettingsTable[WindowSettings - 1]->trace_on = trace;
6 WindowSettingsTable[WindowSettings - 1]->log_on = keeplog;
8 - NC_SetWindowSetting(WindowSettings, NC_LOG_NAME, (int) logfnm);
9 - NC_SetWindowSetting(WindowSettings, NC_FORMAT, (int) getformat());
10 - NC_SetWindowSetting(WindowSettings, NC_PROMPT, (int) prompt);
11 +// NC_SetWindowSetting(WindowSettings, NC_LOG_NAME, (int) logfnm);
12 +// NC_SetWindowSetting(WindowSettings, NC_FORMAT, (int) getformat());
13 +// NC_SetWindowSetting(WindowSettings, NC_PROMPT, (int) prompt);
14 + NC_SetWindowSetting(WindowSettings, NC_LOG_NAME, (size_t) logfnm);
15 + NC_SetWindowSetting(WindowSettings, NC_FORMAT, (size_t) getformat());
16 + NC_SetWindowSetting(WindowSettings, NC_PROMPT, (size_t) prompt);
17 WindowSettingsTable[WindowSettings - 1]->screenWidth = ssizew;
18 WindowSettingsTable[WindowSettings - 1]->useHistory = usehistory;
20 @@ -669,10 +672,9 @@ NC_CreateSessionSettings(void)
24 -NC_SetSessionSetting(long ioSettings, int inFeature, int inValue)
25 +NC_SetSessionSetting(long ioSettings, int inFeature, size_t inValue)
29 DIAG_MSG3("SetSessionSettings", ioSettings, inFeature, inValue);
31 /* check if ioSettings actually exist... */
32 @@ -792,7 +794,7 @@ NC_GetSessionSetting(long ioSettings, in
36 - *inValue = (int) SessionSettingsTable[ioSettings - 1]->defs_name;
37 + *inValue = (size_t) SessionSettingsTable[ioSettings - 1]->defs_name;
41 @@ -804,7 +806,7 @@ NC_GetSessionSetting(long ioSettings, in
44 case NC_INITIAL_WORKSPACE:
45 - *inValue = (int) SessionSettingsTable[ioSettings - 1]->ws_name;
46 + *inValue = (size_t) SessionSettingsTable[ioSettings - 1]->ws_name;
50 @@ -923,11 +925,11 @@ NC_CreateWindowSettings(void)
54 -NC_SetWindowSetting(long ioSettings, int inFeature, int inValue)
55 +NC_SetWindowSetting(long ioSettings, int inFeature, size_t inValue)
59 - DIAG_MSG3("SetWindowSetting", ioSettings, inFeature, (int) inValue);
60 + DIAG_MSG3("SetWindowSetting", ioSettings, inFeature, (sizt_t) inValue);
62 /* check if ioSettings actually exist... */
64 @@ -1105,16 +1107,16 @@ NC_GetWindowSetting(long ioSettings, int
68 - *outValue = (int) WindowSettingsTable[ioSettings - 1]->log_name;
69 + *outValue = (size_t) WindowSettingsTable[ioSettings - 1]->log_name;
72 - *outValue = (int) WindowSettingsTable[ioSettings - 1]->wprompt;
73 + *outValue = (size_t) WindowSettingsTable[ioSettings - 1]->wprompt;
76 - *outValue = (int) WindowSettingsTable[ioSettings - 1]->format;
77 + *outValue = (size_t) WindowSettingsTable[ioSettings - 1]->format;
80 - *outValue = (int) WindowSettingsTable[ioSettings - 1]->useHistory;
81 + *outValue = (size_t) WindowSettingsTable[ioSettings - 1]->useHistory;
84 /* programmer's error */
85 diff -rupN build//coreif_p.h tmp/coreif_p.h
86 --- build//coreif_p.h 2006-11-07 19:51:11.000000000 +0000
87 +++ tmp/coreif_p.h 2010-12-04 16:44:44.146666460 +0000
88 @@ -186,7 +186,7 @@ _EXTERN_ int _EXPORT_ NC_StopNial(void);
89 _EXTERN_ long _EXPORT_ NC_CreateSessionSettings(void);
91 NC_SetSessionSetting(long ioSettings,
92 - int inFeature, int inValue);
93 + int inFeature, size_t inValue);
95 NC_GetSessionSetting(long ioSettings,
96 int inFeature, int *inValue);
97 @@ -201,7 +201,7 @@ NC_SetCheckUserBreak(long ioSettings,
98 _EXTERN_ long _EXPORT_ NC_CreateWindowSettings(void);
100 NC_SetWindowSetting(long ioSettings,
101 - int inFeature, int inValue);
102 + int inFeature, size_t inValue);
103 _EXTERN_ int _EXPORT_
104 NC_GetWindowSetting(long ioSettings,
105 int inFeature, int *outValue);
106 diff -rupN build//main_stu.c tmp/main_stu.c
107 --- build//main_stu.c 2006-11-07 19:51:11.000000000 +0000
108 +++ tmp/main_stu.c 2010-12-04 16:44:44.146666460 +0000
109 @@ -382,10 +382,10 @@ main(int argc, char *memin[])
110 NC_EXPANSION, expansion));
112 CheckErr(NC_SetSessionSetting(sessionSettings,
113 - NC_INITIAL_WORKSPACE, (int) inloadfnm));
114 + NC_INITIAL_WORKSPACE, (size_t) inloadfnm));
116 CheckErr(NC_SetSessionSetting(sessionSettings,
117 - NC_INITIAL_DEFS, (int) indefsfnm));
118 + NC_INITIAL_DEFS, (size_t) indefsfnm));
120 CheckErr(NC_SetSessionSetting(sessionSettings,
122 @@ -395,7 +395,7 @@ main(int argc, char *memin[])
123 windSettings = NC_CreateWindowSettings();
125 if (iscgiversion) /* avoid output by having no prompt in CGINIAL */
126 - CheckErr(NC_SetWindowSetting(windSettings, NC_PROMPT, (int) ""));
127 + CheckErr(NC_SetWindowSetting(windSettings, NC_PROMPT, (size_t) ""));
129 /* The CGINIAL version is given a default 0 screen width setting,
130 so no lines are broken. */
131 diff -rupN build//makefile tmp/makefile
132 --- build//makefile 2007-02-08 19:22:03.000000000 +0000
133 +++ tmp/makefile 2010-12-04 17:01:01.743333116 +0000
134 @@ -41,11 +41,11 @@ VERSION=
136 #if SOLARIS & gcc turn these on
142 -SYSFLAG= -DSUN4 -DSOLARIS2 -DUNIXSYS $(VERSION)
147 +#SYSFLAG= -DSUN4 -DSOLARIS2 -DUNIXSYS $(VERSION)
150 # Choose an alternate target by uncommenting a group below or creating a new group
151 @@ -54,11 +54,11 @@ SYSFLAG= -DSUN4 -DSOLARIS2 -DUNIXSYS $(
153 #if LINUX & gcc turn these on
159 -#SYSFLAG= -DLINUX -DUNIXSYS
164 +SYSFLAG= -DLINUX -DUNIXSYS
167 #if SUNOS & cc on a SUN turns these on
168 @@ -144,7 +144,7 @@ DEBUGFLAG=
171 # the socket lib used with Windows and gcc on Solaris
172 -SOCKLIB= -lsocket -lnsl
173 +#SOCKLIB= -lsocket -lnsl
176 LIBS= -lm -ltermcap $(DEBUG_LIB) $(SOCKLIB)