=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/sysinfo", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for sysinfo-3.5.1 --- default --- --- sunos5 --- Making sysinfo for SunOS 5.x ... Make sure that `cc' is not `/usr/ucb/cc' or sysinfo may not work. --- sysinfo.o --- --- devices.o --- --- sysinfo.o --- gcc -g -I. -Dsunos -DOSMVER=5 -DOSVER=511 -DCONFIG_DIR=\"/opt/pkg/libdata/sysinfo/conf\" -c sysinfo.c --- devices.o --- gcc -g -I. -Dsunos -DOSMVER=5 -DOSVER=511 -DCONFIG_DIR=\"/opt/pkg/libdata/sysinfo/conf\" -c devices.c In file included from mcdefs.h:19, from mconfig.h:23, from mcregex.h:15, from config-data.h:16, from config.h:16, from mconfig.h:22, from defs.h:16, from devices.c:18: options.h:75:13: error: conflicting types for 'strtol'; have 'long int(void)' 75 | extern long strtol(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from os-sunos5.h:20, from os.h:22, from mconfig.h:21: /usr/include/iso/stdlib_iso.h:157:17: note: previous declaration of 'strtol' with type 'long int(const char * restrict, char ** restrict, int)' 157 | extern long int strtol(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD, int); | ^~~~~~ options.h:76:14: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 76 | extern char *strcpy(); | ^~~~~~ options.h:16:1: note: 'strcpy' is declared in header '' 15 | #include "mconfig.h" +++ |+#include 16 | In file included from /usr/include/string.h:35, from config.h:57: /usr/include/iso/string_iso.h:75:14: error: conflicting types for 'strcpy'; have 'char *(char * restrict, const char * restrict)' 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~~ options.h:76:14: note: previous declaration of 'strcpy' with type 'char *(void)' 76 | extern char *strcpy(); | ^~~~~~ --- sysinfo.o --- In file included from mcdefs.h:19, from mconfig.h:23, from mcregex.h:15, from config-data.h:16, from config.h:16, from mconfig.h:22, from defs.h:16, from sysinfo.c:20: options.h:75:13: error: conflicting types for 'strtol'; have 'long int(void)' 75 | extern long strtol(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from os-sunos5.h:20, from os.h:22, from mconfig.h:21: /usr/include/iso/stdlib_iso.h:157:17: note: previous declaration of 'strtol' with type 'long int(const char * restrict, char ** restrict, int)' 157 | extern long int strtol(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD, int); | ^~~~~~ options.h:76:14: warning: conflicting types for built-in function 'strcpy'; expected 'char *(char *, const char *)' [-Wbuiltin-declaration-mismatch] 76 | extern char *strcpy(); | ^~~~~~ options.h:16:1: note: 'strcpy' is declared in header '' 15 | #include "mconfig.h" +++ |+#include 16 | In file included from /usr/include/string.h:35, from config.h:57: /usr/include/iso/string_iso.h:75:14: error: conflicting types for 'strcpy'; have 'char *(char * restrict, const char * restrict)' 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~~ options.h:76:14: note: previous declaration of 'strcpy' with type 'char *(void)' 76 | extern char *strcpy(); | ^~~~~~ --- devices.o --- In file included from defs.h:803: declare.h:44:33: error: conflicting types for 'strchr'; have 'char *(void)' 44 | char *strchr(); | ^~~~~~ /usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)' 140 | extern char *strchr(const char *, int); | ^~~~~~ declare.h:45:33: error: conflicting types for 'strrchr'; have 'char *(void)' 45 | char *strrchr(); | ^~~~~~~ /usr/include/iso/string_iso.h:142:14: note: previous declaration of 'strrchr' with type 'char *(const char *, int)' 142 | extern char *strrchr(const char *, int); | ^~~~~~~ declare.h:46:33: error: conflicting types for 'strdup'; have 'char *(void)' 46 | char *strdup(); | ^~~~~~ /usr/include/string.h:142:14: note: previous declaration of 'strdup' with type 'char *(const char *)' 142 | extern char *strdup(const char *); | ^~~~~~ declare.h:47:33: error: conflicting types for 'strcat'; have 'char *(void)' 47 | char *strcat(); | ^~~~~~ /usr/include/iso/string_iso.h:73:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)' 73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~~ declare.h:48:33: error: conflicting types for 'strtok'; have 'char *(void)' 48 | char *strtok(); | ^~~~~~ /usr/include/iso/string_iso.h:84:14: note: previous declaration of 'strtok' with type 'char *(char * restrict, const char * restrict)' 84 | extern char *strtok(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~~ devices.c: In function 'AddDevDesc': devices.c:51:5: warning: old-style function definition [-Wold-style-definition] 51 | int AddDevDesc(DevInfo, Desc, Label, Action) | ^~~~~~~~~~ devices.c:73:25: error: too many arguments to function 'xcalloc'; expected 0, have 2 73 | New = (DevDesc_t *) xcalloc(sizeof(DevDesc_t), 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c:74:17: error: too many arguments to function 'strdup'; expected 0, have 1 74 | New->Desc = strdup(Desc); | ^~~~~~ ~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:76:22: error: too many arguments to function 'strdup'; expected 0, have 1 76 | New->Label = strdup(Label); | ^~~~~~ ~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c: In function 'DevAddRes': devices.c:102:13: warning: old-style function definition [-Wold-style-definition] 102 | extern void DevAddRes(DevInfo, Resolution) | ^~~~~~~~~ --- sysinfo.o --- In file included from defs.h:803: declare.h:44:33: error: conflicting types for 'strchr'; have 'char *(void)' 44 | char *strchr(); | ^~~~~~ --- devices.o --- devices.c:114:29: error: too many arguments to function 'xcalloc'; expected 0, have 2 114 | Mon = (Monitor_t *) xcalloc(1, sizeof(Monitor_t *)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ --- sysinfo.o --- /usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)' 140 | extern char *strchr(const char *, int); | ^~~~~~ declare.h:45:33: error: conflicting types for 'strrchr'; have 'char *(void)' 45 | char *strrchr(); | ^~~~~~~ /usr/include/iso/string_iso.h:142:14: note: previous declaration of 'strrchr' with type 'char *(const char *, int)' 142 | extern char *strrchr(const char *, int); | ^~~~~~~ declare.h:46:33: error: conflicting types for 'strdup'; have 'char *(void)' 46 | char *strdup(); | ^~~~~~ --- devices.o --- devices.c:120:38: error: too many arguments to function 'xcalloc'; expected 0, have 2 120 | Mon->Resolutions = (char **) xcalloc(2, sizeof(char *)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ --- sysinfo.o --- /usr/include/string.h:142:14: note: previous declaration of 'strdup' with type 'char *(const char *)' 142 | extern char *strdup(const char *); | ^~~~~~ declare.h:47:33: error: conflicting types for 'strcat'; have 'char *(void)' 47 | char *strcat(); | ^~~~~~ /usr/include/iso/string_iso.h:73:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)' 73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~~ declare.h:48:33: error: conflicting types for 'strtok'; have 'char *(void)' 48 | char *strtok(); | ^~~~~~ /usr/include/iso/string_iso.h:84:14: note: previous declaration of 'strtok' with type 'char *(char * restrict, const char * restrict)' 84 | extern char *strtok(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~~ --- devices.o --- devices.c:137:34: error: too many arguments to function 'xrealloc'; expected 0, have 2 137 | Mon->Resolutions = (char **) xrealloc(Mon->Resolutions, | ^~~~~~~~ ~~~~~~~~~~~~~~~~ declare.h:54:33: note: declared here 54 | void *xrealloc(); | ^~~~~~~~ devices.c: In function 'DevAddFile': devices.c:147:13: warning: old-style function definition [-Wold-style-definition] 147 | extern void DevAddFile(DevInfo, File) | ^~~~~~~~~~ devices.c:150:1: error: number of arguments doesn't match prototype 150 | { | ^ declare.h:179:33: error: prototype declaration 179 | extern void DevAddFile(); | ^~~~~~~~~~ devices.c:158:36: error: too many arguments to function 'xcalloc'; expected 0, have 2 158 | DevInfo->Files = (char **) xcalloc(2, sizeof(char *)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c:175:32: error: too many arguments to function 'xrealloc'; expected 0, have 2 175 | DevInfo->Files = (char **) xrealloc(DevInfo->Files, (i+1)*sizeof(char *)); | ^~~~~~~~ ~~~~~~~~~~~~~~ declare.h:54:33: note: declared here 54 | void *xrealloc(); | ^~~~~~~~ devices.c: In function 'GetSizeStr': devices.c:183:14: warning: old-style function definition [-Wold-style-definition] 183 | extern char *GetSizeStr(Amt, Unit) | ^~~~~~~~~~ devices.c:186:1: error: number of arguments doesn't match prototype 186 | { | ^ declare.h:120:33: error: prototype declaration 120 | extern char *GetSizeStr(); | ^~~~~~~~~~ devices.c: In function 'DeviceShow': devices.c:243:13: warning: old-style function definition [-Wold-style-definition] 243 | extern void DeviceShow(MyInfo, Names) | ^~~~~~~~~~ devices.c:246:1: error: number of arguments doesn't match prototype 246 | { | ^ declare.h:178:33: error: prototype declaration 178 | extern void DeviceShow(); | ^~~~~~~~~~ --- sysinfo.o --- sysinfo.c: In function 'ListInfoDesc': sysinfo.c:178:13: warning: old-style function definition [-Wold-style-definition] 178 | static void ListInfoDesc(OptStr, List) | ^~~~~~~~~~~~ sysinfo.c: In function 'List': sysinfo.c:231:13: warning: old-style function definition [-Wold-style-definition] 231 | static void List(Str) | ^~~~ --- devices.o --- devices.c:250:9: error: implicit declaration of function 'BuildDevices' [-Wimplicit-function-declaration] 250 | if (BuildDevices(&RootDev, Names) != 0) | ^~~~~~~~~~~~ devices.c:259:5: error: too many arguments to function 'DevTreeVerify'; expected 0, have 1 259 | DevTreeVerify(&RootDev); | ^~~~~~~~~~~~~ ~~~~~~~~ --- sysinfo.o --- sysinfo.c:243:17: error: too many arguments to function 'strtok'; expected 0, have 2 243 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ ~~~ --- devices.o --- devices.c:26:13: note: declared here 26 | static void DevTreeVerify(); | ^~~~~~~~~~~~~ --- sysinfo.o --- declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ --- devices.o --- devices.c:261:5: error: too many arguments to function 'ClassShowBanner'; expected 0, have 1 261 | ClassShowBanner(MyInfo); | ^~~~~~~~~~~~~~~ ~~~~~~ declare.h:191:33: note: declared here 191 | extern void ClassShowBanner(); | ^~~~~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c:243:48: error: too many arguments to function 'strtok'; expected 0, have 2 243 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ --- devices.o --- devices.c:265:5: error: too many arguments to function 'PrintDevice'; expected 0, have 2 265 | PrintDevice(RootDev, 0); | ^~~~~~~~~~~ ~~~~~~~ devices.c:24:13: note: declared here 24 | extern void PrintDevice(); | ^~~~~~~~~~~ --- sysinfo.o --- declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ --- devices.o --- devices.c:271:20: error: too many arguments to function 'GetSizeStr'; expected 0, have 2 271 | GetSizeStr((Large_t) TotalDisk, | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ devices.c:183:14: note: declared here 183 | extern char *GetSizeStr(Amt, Unit) | ^~~~~~~~~~ devices.c:275:26: error: too many arguments to function 'GetSizeStr'; expected 0, have 2 275 | RptData[0] = GetSizeStr((Large_t) TotalDisk, | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ devices.c:183:14: note: declared here 183 | extern char *GetSizeStr(Amt, Unit) | ^~~~~~~~~~ devices.c:277:13: error: too many arguments to function 'Report'; expected 0, have 5 277 | Report(CN_DEVICE, R_TOTALDISK, NULL, RptData, 1); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c: In function 'PrintDevice': devices.c:287:13: warning: old-style function definition [-Wold-style-definition] 287 | extern void PrintDevice(DevInfo, OffSet) | ^~~~~~~~~~~ devices.c:290:1: error: number of arguments doesn't match prototype 290 | { | ^ devices.c:24:13: error: prototype declaration 24 | extern void PrintDevice(); | ^~~~~~~~~~~ --- sysinfo.o --- sysinfo.c: In function 'GetArg': sysinfo.c:262:14: warning: old-style function definition [-Wold-style-definition] 262 | static char *GetArg(Str, ArgNum) | ^~~~~~ --- devices.o --- devices.c:293:15: error: too many arguments to function 'TypeGetByType'; expected 0, have 1 293 | DevType = TypeGetByType(DevInfo->Type); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~ declare.h:200:33: note: declared here 200 | extern DevType_t *TypeGetByType(); | ^~~~~~~~~~~~~ devices.c:295:19: error: too many arguments to function 'TypeGetByType'; expected 0, have 1 295 | DevType = TypeGetByType(DT_GENERIC); | ^~~~~~~~~~~~~ declare.h:200:33: note: declared here 200 | extern DevType_t *TypeGetByType(); | ^~~~~~~~~~~~~ devices.c:302:14: error: too many arguments to function 'DevType->Print'; expected 0, have 3 302 | (*DevType->Print)(DevInfo, DevType, OffSet); | ~^~~~~~~~~~~~~~~~ ~~~~~~~ defs.h:722:33: note: declared here 722 | void (*Print)(); /* Print function */ | ^~~~~ devices.c:304:13: error: too many arguments to function 'PrintGeneric'; expected 0, have 3 304 | PrintGeneric(DevInfo, DevType, OffSet); | ^~~~~~~~~~~~ ~~~~~~~ devices.c:25:13: note: declared here 25 | extern void PrintGeneric(); | ^~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c: In function 'ParseMsgLevel': sysinfo.c:294:12: warning: old-style function definition [-Wold-style-definition] 294 | static int ParseMsgLevel(Str) | ^~~~~~~~~~~~~ --- devices.o --- devices.c:311:9: error: too many arguments to function 'PrintDevice'; expected 0, have 2 311 | PrintDevice(DevInfo->Slaves, (DevInfo->Name) ? | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~ devices.c:287:13: note: declared here 287 | extern void PrintDevice(DevInfo, OffSet) | ^~~~~~~~~~~ --- sysinfo.o --- sysinfo.c:304:17: error: too many arguments to function 'strtok'; expected 0, have 2 304 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ ~~~ declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ --- devices.o --- devices.c:318:9: error: too many arguments to function 'PrintDevice'; expected 0, have 2 318 | PrintDevice(DevInfo->Next, (DevInfo->Name) ? OffSet : 0); | ^~~~~~~~~~~ ~~~~~~~~~~~~~ devices.c:287:13: note: declared here 287 | extern void PrintDevice(DevInfo, OffSet) | ^~~~~~~~~~~ devices.c: In function 'PrOffSet': devices.c:324:13: warning: old-style function definition [-Wold-style-definition] 324 | static void PrOffSet(cnt) | ^~~~~~~~ --- sysinfo.o --- sysinfo.c:304:48: error: too many arguments to function 'strtok'; expected 0, have 2 304 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ --- devices.o --- devices.c: In function 'PrDevLabel': devices.c:334:13: warning: old-style function definition [-Wold-style-definition] 334 | static void PrDevLabel(Name, OffSet) | ^~~~~~~~~~ devices.c: In function 'GetDescLabel': devices.c:345:7: warning: old-style function definition [-Wold-style-definition] 345 | char *GetDescLabel(DevDesc) | ^~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c: In function 'ParseMsgClass': --- devices.o --- devices.c: In function 'PrimeDesc': --- sysinfo.o --- sysinfo.c:325:12: warning: old-style function definition [-Wold-style-definition] 325 | static int ParseMsgClass(Str) | ^~~~~~~~~~~~~ --- devices.o --- devices.c:357:14: warning: old-style function definition [-Wold-style-definition] 357 | extern char *PrimeDesc(DevInfo) | ^~~~~~~~~ devices.c:359:1: error: number of arguments doesn't match prototype 359 | { | ^ declare.h:175:33: error: prototype declaration 175 | extern char *PrimeDesc(); | ^~~~~~~~~ --- sysinfo.o --- sysinfo.c:336:17: error: too many arguments to function 'strtok'; expected 0, have 2 336 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ ~~~ declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ sysinfo.c:336:48: error: too many arguments to function 'strtok'; expected 0, have 2 336 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ --- devices.o --- devices.c: In function 'PrimeDescPtr': devices.c:375:19: warning: old-style function definition [-Wold-style-definition] 375 | extern DevDesc_t *PrimeDescPtr(DevInfo) | ^~~~~~~~~~~~ devices.c:377:1: error: number of arguments doesn't match prototype 377 | { | ^ declare.h:74:33: error: prototype declaration 74 | extern DevDesc_t *PrimeDescPtr(); | ^~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c: In function 'ParseFormat': sysinfo.c:360:12: warning: old-style function definition [-Wold-style-definition] 360 | static int ParseFormat(Str) | ^~~~~~~~~~~ --- devices.o --- devices.c: In function 'PrintGenericInfo': devices.c:393:13: warning: old-style function definition [-Wold-style-definition] 393 | extern void PrintGenericInfo(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c:370:17: error: too many arguments to function 'strtok'; expected 0, have 2 370 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ ~~~ declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ sysinfo.c:370:48: error: too many arguments to function 'strtok'; expected 0, have 2 370 | for (Word = strtok(Str, ","); Word; Word = strtok((char *)NULL, ",")) { | ^~~~~~ declare.h:48:33: note: declared here 48 | char *strtok(); | ^~~~~~ --- devices.o --- devices.c:440:25: error: too many arguments to function 'ClassTypeGetByType'; expected 0, have 2 440 | if (ClassType = ClassTypeGetByType(DevInfo->Type, DevInfo->ClassType)){ | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ declare.h:202:33: note: declared here 202 | extern ClassType_t *ClassTypeGetByType(); | ^~~~~~~~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c: In function 'CheckMCL': sysinfo.c:394:15: warning: old-style function definition [-Wold-style-definition] 394 | static mcl_t *CheckMCL(Product) | ^~~~~~~~ --- devices.o --- devices.c: In function 'PrintDeviceInfoPretty': devices.c:451:13: warning: old-style function definition [-Wold-style-definition] 451 | static void PrintDeviceInfoPretty(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c:406:9: error: too many arguments to function 'MCLcheck'; expected 0, have 1 406 | if (MCLcheck(&Query) < 0) { | ^~~~~~~~ ~~~~~~ In file included from defs.h:18: mcl.h:80:33: note: declared here 80 | extern int MCLcheck(); | ^~~~~~~~ --- devices.o --- devices.c:482:25: error: too many arguments to function 'ClassTypeGetByType'; expected 0, have 2 482 | if (ClassType = ClassTypeGetByType(DevInfo->Type, DevInfo->ClassType)) | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ declare.h:202:33: note: declared here 202 | extern ClassType_t *ClassTypeGetByType(); | ^~~~~~~~~~~~~~~~~~ devices.c:493:24: error: too many arguments to function 'PrimeDesc'; expected 0, have 1 493 | else if ((cp = PrimeDesc(DevInfo)) && !EQ(cp, DevInfo->Model)) | ^~~~~~~~~ ~~~~~~~ devices.c:357:14: note: declared here 357 | extern char *PrimeDesc(DevInfo) | ^~~~~~~~~ devices.c:495:21: error: too many arguments to function 'PrimeDesc'; expected 0, have 1 495 | } else if (cp = PrimeDesc(DevInfo)) { | ^~~~~~~~~ ~~~~~~~ devices.c:357:14: note: declared here 357 | extern char *PrimeDesc(DevInfo) | ^~~~~~~~~ devices.c:530:27: error: too many arguments to function 'TypeGetByType'; expected 0, have 1 530 | if (mdt = TypeGetByType(DevInfo->Master->Type)) | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ declare.h:200:33: note: declared here 200 | extern DevType_t *TypeGetByType(); | ^~~~~~~~~~~~~ devices.c: In function 'PrintDeviceInfoReport': devices.c:551:13: warning: old-style function definition [-Wold-style-definition] 551 | static void PrintDeviceInfoReport(DevInfo, DevType) | ^~~~~~~~~~~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c: At top level: --- devices.o --- devices.c:581:13: error: too many arguments to function 'strcat'; expected 0, have 2 581 | strcat(FileBuff, ","); | ^~~~~~ ~~~~~~~~ declare.h:47:33: note: declared here 47 | char *strcat(); | ^~~~~~ --- sysinfo.o --- sysinfo.c:553:1: error: return type defaults to 'int' [-Wimplicit-int] 553 | main(Argc, Argv, Envp) | ^~~~ sysinfo.c: In function 'main': sysinfo.c:553:1: warning: old-style function definition [-Wold-style-definition] --- devices.o --- devices.c:584:9: error: too many arguments to function 'strcat'; expected 0, have 2 584 | strcat(FileBuff, *cpp); | ^~~~~~ ~~~~~~~~ declare.h:47:33: note: declared here 47 | char *strcat(); | ^~~~~~ --- sysinfo.o --- sysinfo.c:566:9: error: too many arguments to function 'ParseOptions'; expected 0, have 4 566 | if (ParseOptions(Opts, Num_Opts(Opts), Argc, Argv) < 0) | ^~~~~~~~~~~~ ~~~~ options.h:63:17: note: declared here 63 | int ParseOptions(); | ^~~~~~~~~~~~ sysinfo.c:572:14: error: too many arguments to function 'strrchr'; expected 0, have 2 572 | if (cp = strrchr(ProgramName, '/')) | ^~~~~~~ ~~~~~~~~~~~ declare.h:45:33: note: declared here 45 | char *strrchr(); | ^~~~~~~ --- devices.o --- devices.c:617:21: error: too many arguments to function 'ClassTypeGetByType'; expected 0, have 2 617 | if (ClassType = ClassTypeGetByType(DevInfo->Type, DevInfo->ClassType)) { | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ declare.h:202:33: note: declared here 202 | extern ClassType_t *ClassTypeGetByType(); | ^~~~~~~~~~~~~~~~~~ devices.c:628:5: error: too many arguments to function 'Report'; expected 0, have 5 628 | Report(CN_DEVICE, R_NAME, PRTS(DevInfo->Name), RptData, | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:638:9: error: too many arguments to function 'Report'; expected 0, have 5 638 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c: In function 'PrintGeneric': devices.c:645:13: warning: old-style function definition [-Wold-style-definition] 645 | extern void PrintGeneric(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~ devices.c:649:1: error: number of arguments doesn't match prototype 649 | { | ^ devices.c:25:13: error: prototype declaration 25 | extern void PrintGeneric(); | ^~~~~~~~~~~~ devices.c: In function 'PrintDiskPartPretty': devices.c:659:13: warning: old-style function definition [-Wold-style-definition] 659 | static void PrintDiskPartPretty(Disk, OffSet) | ^~~~~~~~~~~~~~~~~~~ devices.c: In function 'PrintDiskPartReport': devices.c:711:13: warning: old-style function definition [-Wold-style-definition] 711 | static void PrintDiskPartReport(Disk, DevInfo) | ^~~~~~~~~~~~~~~~~~~ devices.c:738:9: error: too many arguments to function 'Report'; expected 0, have 5 738 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 7); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c: In function 'GetDiskSize': devices.c:745:14: warning: old-style function definition [-Wold-style-definition] 745 | extern char *GetDiskSize(DevInfo, DiskDrive) | ^~~~~~~~~~~ devices.c:786:16: error: too many arguments to function 'GetSizeStr'; expected 0, have 2 786 | return(GetSizeStr((Large_t) Amt, MBYTES)); | ^~~~~~~~~~ ~~~~~~~~~~~~~ devices.c:183:14: note: declared here 183 | extern char *GetSizeStr(Amt, Unit) | ^~~~~~~~~~ devices.c: In function 'PrDkLbl': devices.c:794:14: warning: old-style function definition [-Wold-style-definition] 794 | static char *PrDkLbl(Disk, Label) | ^~~~~~~ --- sysinfo.o --- sysinfo.c:620:13: error: implicit declaration of function 'CFparse'; did you mean 'pause'? [-Wimplicit-function-declaration] 620 | if (CFparse(ConfFile, ConfDir) != 0) { | ^~~~~~~ | pause sysinfo.c:632:18: error: too many arguments to function 'MCLgetInfo'; expected 0, have 1 632 | if (cp = MCLgetInfo(MClic)) | ^~~~~~~~~~ ~~~~~ mcl.h:79:33: note: declared here 79 | extern char *MCLgetInfo(); | ^~~~~~~~~~ --- devices.o --- devices.c: In function 'PrintDiskDrivePretty': devices.c:818:13: warning: old-style function definition [-Wold-style-definition] 818 | static void PrintDiskDrivePretty(DevInfo, Disk, OffSet) | ^~~~~~~~~~~~~~~~~~~~ --- sysinfo.o --- sysinfo.c:677:5: error: too many arguments to function 'ClassSetInfo'; expected 0, have 1 677 | ClassSetInfo(ClassNames); | ^~~~~~~~~~~~ ~~~~~~~~~~ declare.h:194:33: note: declared here 194 | extern void ClassSetInfo(); | ^~~~~~~~~~~~ sysinfo.c:682:5: error: too many arguments to function 'TypeSetInfo'; expected 0, have 1 682 | TypeSetInfo(TypeNames); | ^~~~~~~~~~~ ~~~~~~~~~ declare.h:199:33: note: declared here 199 | extern void TypeSetInfo(); | ^~~~~~~~~~~ sysinfo.c:686:11: error: too many arguments to function 'ClassCall'; expected 0, have 1 686 | exit( ClassCall(ShowStr) ); | ^~~~~~~~~ ~~~~~~~ declare.h:195:33: note: declared here 195 | extern int ClassCall(); | ^~~~~~~~~ --- devices.o --- devices.c:844:29: error: too many arguments to function 'itoa'; expected 0, have 1 844 | AddDevDesc(DevInfo, itoa(Disk->Slave), | ^~~~ ~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:849:29: error: too many arguments to function 'itoa'; expected 0, have 1 849 | AddDevDesc(DevInfo, itoa(Disk->DataCyl), | ^~~~ ~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:852:29: error: too many arguments to function 'itoa'; expected 0, have 1 852 | AddDevDesc(DevInfo, itoa(Disk->PhyCyl), | ^~~~ ~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:855:29: error: too many arguments to function 'itoa'; expected 0, have 1 855 | AddDevDesc(DevInfo, itoa(Disk->AltCyl), | ^~~~ ~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:858:29: error: too many arguments to function 'itoa'; expected 0, have 1 858 | AddDevDesc(DevInfo, itoa(Disk->CylSkew), | ^~~~ ~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:861:29: error: too many arguments to function 'itoa'; expected 0, have 1 861 | AddDevDesc(DevInfo, itoa(Disk->APC), | ^~~~ ~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:866:29: error: too many arguments to function 'itoa'; expected 0, have 1 866 | AddDevDesc(DevInfo, itoa(Disk->Tracks), | ^~~~ ~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:869:29: error: too many arguments to function 'itoa'; expected 0, have 1 869 | AddDevDesc(DevInfo, itoa(Disk->AltTracksPerZone), | ^~~~ ~~~~~~~~~~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:872:29: error: too many arguments to function 'itoa'; expected 0, have 1 872 | AddDevDesc(DevInfo, itoa(Disk->AltTracksPerVol), | ^~~~ ~~~~~~~~~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:875:29: error: too many arguments to function 'itoa'; expected 0, have 1 875 | AddDevDesc(DevInfo, itoa(Disk->TrackSkew), | ^~~~ ~~~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:880:29: error: too many arguments to function 'itoa'; expected 0, have 1 880 | AddDevDesc(DevInfo, itoa(Disk->StepsPerTrack), | ^~~~ ~~~~~~~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:885:29: error: too many arguments to function 'itoa'; expected 0, have 1 885 | AddDevDesc(DevInfo, itoa(Disk->Sect), | ^~~~ ~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:888:29: error: too many arguments to function 'itoa'; expected 0, have 1 888 | AddDevDesc(DevInfo, itoa(Disk->SecSize), | ^~~~ ~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:891:29: error: too many arguments to function 'itoa'; expected 0, have 1 891 | AddDevDesc(DevInfo, itoa(Disk->PhySect), | ^~~~ ~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:894:29: error: too many arguments to function 'itoa'; expected 0, have 1 894 | AddDevDesc(DevInfo, itoa(Disk->AltSectPerZone), | ^~~~ ~~~~~~~~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:897:29: error: too many arguments to function 'itoa'; expected 0, have 1 897 | AddDevDesc(DevInfo, itoa(Disk->SectGap), | ^~~~ ~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:902:29: error: too many arguments to function 'itoa'; expected 0, have 1 902 | AddDevDesc(DevInfo, itoa(Disk->RPM), | ^~~~ ~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:905:29: error: too many arguments to function 'itoa'; expected 0, have 1 905 | AddDevDesc(DevInfo, itoa(Disk->IntrLv), | ^~~~ ~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:908:29: error: too many arguments to function 'itoa'; expected 0, have 1 908 | AddDevDesc(DevInfo, itoa(Disk->PROMRev), | ^~~~ ~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c: In function 'PrintDiskDriveReport': devices.c:920:13: warning: old-style function definition [-Wold-style-definition] 920 | static void PrintDiskDriveReport(DevInfo, Disk) | ^~~~~~~~~~~~~~~~~~~~ devices.c:938:9: error: too many arguments to function 'Report'; expected 0, have 5 938 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:944:9: error: too many arguments to function 'Report'; expected 0, have 5 944 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:952:9: error: too many arguments to function 'Report'; expected 0, have 5 952 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:957:9: error: too many arguments to function 'Report'; expected 0, have 5 957 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:964:9: error: too many arguments to function 'Report'; expected 0, have 5 964 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:969:9: error: too many arguments to function 'Report'; expected 0, have 5 969 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:974:9: error: too many arguments to function 'Report'; expected 0, have 5 974 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:979:9: error: too many arguments to function 'Report'; expected 0, have 5 979 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:984:9: error: too many arguments to function 'Report'; expected 0, have 5 984 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:991:9: error: too many arguments to function 'Report'; expected 0, have 5 991 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:996:9: error: too many arguments to function 'Report'; expected 0, have 5 996 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1001:9: error: too many arguments to function 'Report'; expected 0, have 5 1001 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1006:9: error: too many arguments to function 'Report'; expected 0, have 5 1006 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1013:9: error: too many arguments to function 'Report'; expected 0, have 5 1013 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1018:9: error: too many arguments to function 'Report'; expected 0, have 5 1018 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1023:9: error: too many arguments to function 'Report'; expected 0, have 5 1023 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1028:9: error: too many arguments to function 'Report'; expected 0, have 5 1028 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1035:9: error: too many arguments to function 'Report'; expected 0, have 5 1035 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1040:9: error: too many arguments to function 'Report'; expected 0, have 5 1040 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1045:9: error: too many arguments to function 'Report'; expected 0, have 5 1045 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 3); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c: In function 'PrintDiskdrive': devices.c:1052:13: warning: old-style function definition [-Wold-style-definition] 1052 | extern void PrintDiskdrive(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~~~ devices.c:1056:1: error: number of arguments doesn't match prototype 1056 | { | ^ devices.c:20:13: error: prototype declaration 20 | extern void PrintDiskdrive(); | ^~~~~~~~~~~~~~ devices.c:1083:34: error: too many arguments to function 'strdup'; expected 0, have 1 1083 | DevInfo->ModelDesc = strdup(DiskSize); | ^~~~~~ ~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1106:5: error: too many arguments to function 'PrintGeneric'; expected 0, have 3 1106 | PrintGeneric(DevInfo, DevType, OffSet); | ^~~~~~~~~~~~ ~~~~~~~ devices.c:645:13: note: declared here 645 | extern void PrintGeneric(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~ devices.c: In function 'PrintFrameBuffer': devices.c:1131:13: warning: old-style function definition [-Wold-style-definition] 1131 | extern void PrintFrameBuffer(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~~~~~ devices.c:1135:1: error: number of arguments doesn't match prototype 1135 | { | ^ devices.c:21:13: error: prototype declaration 21 | extern void PrintFrameBuffer(); | ^~~~~~~~~~~~~~~~ devices.c:1145:37: error: too many arguments to function 'itoa'; expected 0, have 1 1145 | AddDevDesc(DevInfo, itoa(fb->CMSize), "Color Map Size", | ^~~~ ~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1149:28: error: too many arguments to function 'GetSizeStr'; expected 0, have 2 1149 | GetSizeStr((Large_t)fb->Size, BYTES), | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~ devices.c:183:14: note: declared here 183 | extern char *GetSizeStr(Amt, Unit) | ^~~~~~~~~~ devices.c:1153:28: error: too many arguments to function 'GetSizeStr'; expected 0, have 2 1153 | GetSizeStr((Large_t)fb->VMSize, BYTES), | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ devices.c:183:14: note: declared here 183 | extern char *GetSizeStr(Amt, Unit) | ^~~~~~~~~~ devices.c:1156:37: error: too many arguments to function 'itoa'; expected 0, have 1 1156 | AddDevDesc(DevInfo, itoa(fb->Height), "Height", DA_APPEND); | ^~~~ ~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1158:37: error: too many arguments to function 'itoa'; expected 0, have 1 1158 | AddDevDesc(DevInfo, itoa(fb->Width), "Width", DA_APPEND); | ^~~~ ~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1160:37: error: too many arguments to function 'itoa'; expected 0, have 1 1160 | AddDevDesc(DevInfo, itoa(fb->Depth), "Depth (bits)", | ^~~~ ~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1164:62: error: too many arguments to function 'itoa'; expected 0, have 1 1164 | RptData[0] = "colormapsize"; RptData[1] = itoa(fb->CMSize); | ^~~~ ~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1165:17: error: too many arguments to function 'Report'; expected 0, have 5 1165 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1169:62: error: too many arguments to function 'itoa'; expected 0, have 1 1169 | RptData[0] = "videomemsize"; RptData[1] = itoa(fb->VMSize); | ^~~~ ~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1170:17: error: too many arguments to function 'Report'; expected 0, have 5 1170 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1174:62: error: too many arguments to function 'itoa'; expected 0, have 1 1174 | RptData[0] = "videomemsize"; RptData[1] = itoa(fb->Size); | ^~~~ ~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1175:17: error: too many arguments to function 'Report'; expected 0, have 5 1175 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1179:54: error: too many arguments to function 'itoa'; expected 0, have 1 1179 | RptData[0] = "height"; RptData[1] = itoa(fb->Height); | ^~~~ ~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1180:17: error: too many arguments to function 'Report'; expected 0, have 5 1180 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1184:54: error: too many arguments to function 'itoa'; expected 0, have 1 1184 | RptData[0] = "width"; RptData[1] = itoa(fb->Width); | ^~~~ ~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ --- sysinfo.o --- *** [sysinfo.o] Error code 1 make[2]: stopped making "all" in /tmp/work/sysutils/sysinfo/work/sysinfo-3.5.1 --- devices.o --- devices.c:1185:17: error: too many arguments to function 'Report'; expected 0, have 5 1185 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1189:54: error: too many arguments to function 'itoa'; expected 0, have 1 1189 | RptData[0] = "depth"; RptData[1] = itoa(fb->Depth); | ^~~~ ~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1190:17: error: too many arguments to function 'Report'; expected 0, have 5 1190 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1195:5: error: too many arguments to function 'PrintGeneric'; expected 0, have 3 1195 | PrintGeneric(DevInfo, DevType, OffSet); | ^~~~~~~~~~~~ ~~~~~~~ devices.c:645:13: note: declared here 645 | extern void PrintGeneric(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~ devices.c: In function 'PrintMonitor': devices.c:1201:13: warning: old-style function definition [-Wold-style-definition] 1201 | extern void PrintMonitor(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~ devices.c:1205:1: error: number of arguments doesn't match prototype 1205 | { | ^ devices.c:22:13: error: prototype declaration 22 | extern void PrintMonitor(); | ^~~~~~~~~~~~ devices.c:1211:5: error: too many arguments to function 'PrintGeneric'; expected 0, have 3 1211 | PrintGeneric(DevInfo, DevType, OffSet); | ^~~~~~~~~~~~ ~~~~~~~ devices.c:645:13: note: declared here 645 | extern void PrintGeneric(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~ devices.c:1237:25: error: too many arguments to function 'strcat'; expected 0, have 2 1237 | strcat(Buff, ","); | ^~~~~~ ~~~~ declare.h:47:33: note: declared here 47 | char *strcat(); | ^~~~~~ devices.c:1240:21: error: too many arguments to function 'strcat'; expected 0, have 2 1240 | strcat(Buff, *cpp); | ^~~~~~ ~~~~ declare.h:47:33: note: declared here 47 | char *strcat(); | ^~~~~~ devices.c:1244:17: error: too many arguments to function 'Report'; expected 0, have 5 1244 | Report(CN_DEVICE, R_DESC, Buff, RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1248:30: error: too many arguments to function 'itoa'; expected 0, have 1 1248 | RptData[1] = itoa(Mon->MaxHorSize); | ^~~~ ~~~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1249:17: error: too many arguments to function 'Report'; expected 0, have 5 1249 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c:1253:30: error: too many arguments to function 'itoa'; expected 0, have 1 1253 | RptData[1] = itoa(Mon->MaxVerSize); | ^~~~ ~~~~~~~~~~~~~~~ declare.h:51:33: note: declared here 51 | char *itoa(); | ^~~~ devices.c:1254:17: error: too many arguments to function 'Report'; expected 0, have 5 1254 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 2); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c: In function 'PrintNetIfPretty': devices.c:1263:13: warning: old-style function definition [-Wold-style-definition] 1263 | static void PrintNetIfPretty(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~~~~~ devices.c: In function 'PrintNetIfReport': devices.c:1313:13: warning: old-style function definition [-Wold-style-definition] 1313 | static void PrintNetIfReport(DevInfo, DevType) | ^~~~~~~~~~~~~~~~ devices.c:1330:9: error: too many arguments to function 'Report'; expected 0, have 5 1330 | Report(CN_DEVICE, R_DESC, PRTS(DevInfo->Name), RptData, 9); | ^~~~~~ declare.h:70:33: note: declared here 70 | extern void Report(); | ^~~~~~ devices.c: In function 'PrintNetIf': devices.c:1337:13: warning: old-style function definition [-Wold-style-definition] 1337 | extern void PrintNetIf(DevInfo, DevType, OffSet) | ^~~~~~~~~~ devices.c:1341:1: error: number of arguments doesn't match prototype 1341 | { | ^ devices.c:23:13: error: prototype declaration 23 | extern void PrintNetIf(); | ^~~~~~~~~~ devices.c:1342:5: error: too many arguments to function 'PrintGeneric'; expected 0, have 3 1342 | PrintGeneric(DevInfo, DevType, OffSet); | ^~~~~~~~~~~~ ~~~~~~~ devices.c:645:13: note: declared here 645 | extern void PrintGeneric(DevInfo, DevType, OffSet) | ^~~~~~~~~~~~ devices.c: In function 'NewDevInfo': devices.c:1359:19: warning: old-style function definition [-Wold-style-definition] 1359 | extern DevInfo_t *NewDevInfo(Old) | ^~~~~~~~~~ devices.c:1361:1: error: number of arguments doesn't match prototype 1361 | { | ^ declare.h:84:33: error: prototype declaration 84 | extern DevInfo_t *NewDevInfo(); | ^~~~~~~~~~ devices.c:1365:25: error: too many arguments to function 'xcalloc'; expected 0, have 2 1365 | New = (DevInfo_t *) xcalloc(1, sizeof(DevInfo_t)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c:1380:37: error: too many arguments to function 'strdup'; expected 0, have 1 1380 | if (Old->Name) New->Name = strdup(Old->Name); | ^~~~~~ ~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1381:39: error: too many arguments to function 'strdup'; expected 0, have 1 1381 | if (Old->Vendor) New->Vendor = strdup(Old->Vendor); | ^~~~~~ ~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1382:39: error: too many arguments to function 'strdup'; expected 0, have 1 1382 | if (Old->Serial) New->Serial = strdup(Old->Serial); | ^~~~~~ ~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1383:41: error: too many arguments to function 'strdup'; expected 0, have 1 1383 | if (Old->Revision) New->Revision = strdup(Old->Revision); | ^~~~~~ ~~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1384:38: error: too many arguments to function 'strdup'; expected 0, have 1 1384 | if (Old->Model) New->Model = strdup(Old->Model); | ^~~~~~ ~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1385:42: error: too many arguments to function 'strdup'; expected 0, have 1 1385 | if (Old->ModelDesc) New->ModelDesc = strdup(Old->ModelDesc); | ^~~~~~ ~~~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1394:20: error: too many arguments to function 'NewDevInfo'; expected 0, have 1 1394 | SlavePtr = NewDevInfo(Slave); | ^~~~~~~~~~ ~~~~~ devices.c:1359:19: note: declared here 1359 | extern DevInfo_t *NewDevInfo(Old) | ^~~~~~~~~~ devices.c: In function 'NewDiskPart': devices.c:1403:20: warning: old-style function definition [-Wold-style-definition] 1403 | extern DiskPart_t *NewDiskPart(Old) | ^~~~~~~~~~~ devices.c:1405:1: error: number of arguments doesn't match prototype 1405 | { | ^ declare.h:91:33: error: prototype declaration 91 | extern DiskPart_t *NewDiskPart(); | ^~~~~~~~~~~ devices.c:1408:26: error: too many arguments to function 'xcalloc'; expected 0, have 2 1408 | New = (DiskPart_t *) xcalloc(1, sizeof(DiskPart_t)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c:1419:37: error: too many arguments to function 'strdup'; expected 0, have 1 1419 | if (Old->Name) New->Name = strdup(Old->Name); | ^~~~~~ ~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1420:38: error: too many arguments to function 'strdup'; expected 0, have 1 1420 | if (Old->Usage) New->Usage = strdup(Old->Usage); | ^~~~~~ ~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1421:37: error: too many arguments to function 'strdup'; expected 0, have 1 1421 | if (Old->Type) New->Type = strdup(Old->Type); | ^~~~~~ ~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c: In function 'NewDiskDrive': devices.c:1429:21: warning: old-style function definition [-Wold-style-definition] 1429 | extern DiskDrive_t *NewDiskDrive(Old) | ^~~~~~~~~~~~ devices.c:1431:1: error: number of arguments doesn't match prototype 1431 | { | ^ declare.h:89:33: error: prototype declaration 89 | extern DiskDrive_t *NewDiskDrive(); | ^~~~~~~~~~~~ devices.c:1435:27: error: too many arguments to function 'xcalloc'; expected 0, have 2 1435 | New = (DiskDrive_t *) xcalloc(1, sizeof(DiskDrive_t)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c:1444:38: error: too many arguments to function 'strdup'; expected 0, have 1 1444 | if (Old->Label) New->Label = strdup(Old->Label); | ^~~~~~ ~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1445:37: error: too many arguments to function 'NewDevInfo'; expected 0, have 1 1445 | if (Old->Ctlr) New->Ctlr = NewDevInfo(Old->Ctlr); | ^~~~~~~~~~ ~~~~~~~~~ devices.c:1359:19: note: declared here 1359 | extern DevInfo_t *NewDevInfo(Old) | ^~~~~~~~~~ devices.c:1452:15: error: too many arguments to function 'NewDiskPart'; expected 0, have 1 1452 | pdp = NewDiskPart(dp); | ^~~~~~~~~~~ ~~ devices.c:1403:20: note: declared here 1403 | extern DiskPart_t *NewDiskPart(Old) | ^~~~~~~~~~~ devices.c: In function 'NewDiskDriveData': devices.c:1461:25: warning: old-style function definition [-Wold-style-definition] 1461 | extern DiskDriveData_t *NewDiskDriveData(Old) | ^~~~~~~~~~~~~~~~ devices.c:1463:1: error: number of arguments doesn't match prototype 1463 | { | ^ declare.h:90:33: error: prototype declaration 90 | extern DiskDriveData_t *NewDiskDriveData(); | ^~~~~~~~~~~~~~~~ devices.c:1466:31: error: too many arguments to function 'xcalloc'; expected 0, have 2 1466 | New = (DiskDriveData_t *) xcalloc(1, sizeof(DiskDriveData_t)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c: In function 'NewFrameBuffer': devices.c:1480:23: warning: old-style function definition [-Wold-style-definition] 1480 | extern FrameBuffer_t *NewFrameBuffer(Old) | ^~~~~~~~~~~~~~ devices.c:1482:1: error: number of arguments doesn't match prototype 1482 | { | ^ declare.h:92:33: error: prototype declaration 92 | extern FrameBuffer_t *NewFrameBuffer(); | ^~~~~~~~~~~~~~ devices.c:1485:29: error: too many arguments to function 'xcalloc'; expected 0, have 2 1485 | New = (FrameBuffer_t *) xcalloc(1, sizeof(FrameBuffer_t)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c: In function 'NewMonitor': devices.c:1499:19: warning: old-style function definition [-Wold-style-definition] 1499 | extern Monitor_t *NewMonitor(Old) | ^~~~~~~~~~ devices.c:1501:1: error: number of arguments doesn't match prototype 1501 | { | ^ declare.h:93:33: error: prototype declaration 93 | extern Monitor_t *NewMonitor(); | ^~~~~~~~~~ devices.c:1504:25: error: too many arguments to function 'xcalloc'; expected 0, have 2 1504 | New = (Monitor_t *) xcalloc(1, sizeof(Monitor_t)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c: In function 'NewNetif': devices.c:1518:17: warning: old-style function definition [-Wold-style-definition] 1518 | extern NetIF_t *NewNetif(Old) | ^~~~~~~~ devices.c:1520:1: error: number of arguments doesn't match prototype 1520 | { | ^ declare.h:94:33: error: prototype declaration 94 | extern NetIF_t *NewNetif(); | ^~~~~~~~ devices.c:1523:23: error: too many arguments to function 'xcalloc'; expected 0, have 2 1523 | New = (NetIF_t *) xcalloc(1, sizeof(NetIF_t)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c:1529:21: error: too many arguments to function 'strdup'; expected 0, have 1 1529 | New->HostAddr = strdup(Old->HostAddr); | ^~~~~~ ~~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1530:21: error: too many arguments to function 'strdup'; expected 0, have 1 1530 | New->HostName = strdup(Old->HostName); | ^~~~~~ ~~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1531:20: error: too many arguments to function 'strdup'; expected 0, have 1 1531 | New->MACaddr = strdup(Old->MACaddr); | ^~~~~~ ~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1532:20: error: too many arguments to function 'strdup'; expected 0, have 1 1532 | New->MACname = strdup(Old->MACname); | ^~~~~~ ~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1533:20: error: too many arguments to function 'strdup'; expected 0, have 1 1533 | New->NetAddr = strdup(Old->NetAddr); | ^~~~~~ ~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1534:20: error: too many arguments to function 'strdup'; expected 0, have 1 1534 | New->NetName = strdup(Old->NetName); | ^~~~~~ ~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c: In function 'DevFindAddMatch': devices.c:1542:13: warning: old-style function definition [-Wold-style-definition] 1542 | static void DevFindAddMatch(Find, What) | ^~~~~~~~~~~~~~~ devices.c:1556:16: error: too many arguments to function 'strcat'; expected 0, have 2 1556 | (void) strcat(Find->Reason, ","); | ^~~~~~ ~~~~~~~~~~~~ declare.h:47:33: note: declared here 47 | char *strcat(); | ^~~~~~ devices.c:1557:12: error: too many arguments to function 'strcat'; expected 0, have 2 1557 | (void) strcat(Find->Reason, What); | ^~~~~~ ~~~~~~~~~~~~ declare.h:47:33: note: declared here 47 | char *strcat(); | ^~~~~~ devices.c: In function 'DevFindMatchName': devices.c:1563:12: warning: old-style function definition [-Wold-style-definition] 1563 | static int DevFindMatchName(Find) | ^~~~~~~~~~~~~~~~ devices.c: In function 'DevFindMatchSerial': devices.c:1598:12: warning: old-style function definition [-Wold-style-definition] 1598 | static int DevFindMatchSerial(Find) | ^~~~~~~~~~~~~~~~~~ devices.c: In function 'DevFindMatchID': devices.c:1624:12: warning: old-style function definition [-Wold-style-definition] 1624 | static int DevFindMatchID(Find) | ^~~~~~~~~~~~~~ devices.c: In function 'DevFindMatchType': devices.c:1641:12: warning: old-style function definition [-Wold-style-definition] 1641 | static int DevFindMatchType(Find) | ^~~~~~~~~~~~~~~~ devices.c: In function 'DevFind': devices.c:1662:19: warning: old-style function definition [-Wold-style-definition] 1662 | extern DevInfo_t *DevFind(Find) | ^~~~~~~ devices.c:1664:1: error: number of arguments doesn't match prototype 1664 | { | ^ declare.h:77:33: error: prototype declaration 77 | extern DevInfo_t *DevFind(); | ^~~~~~~ devices.c:1692:19: error: too many arguments to function 'DevFind'; expected 0, have 1 1692 | if (Ptr = DevFind(Find)) | ^~~~~~~ ~~~~ devices.c:1662:19: note: declared here 1662 | extern DevInfo_t *DevFind(Find) | ^~~~~~~ devices.c:1698:19: error: too many arguments to function 'DevFind'; expected 0, have 1 1698 | if (Ptr = DevFind(Find)) | ^~~~~~~ ~~~~ devices.c:1662:19: note: declared here 1662 | extern DevInfo_t *DevFind(Find) | ^~~~~~~ devices.c: In function 'FindDeviceParent': devices.c:1710:19: warning: old-style function definition [-Wold-style-definition] 1710 | extern DevInfo_t *FindDeviceParent(DevInfo, TreePtr, Parent) | ^~~~~~~~~~~~~~~~ devices.c: In function 'CheckDevice': devices.c:1737:13: warning: old-style function definition [-Wold-style-definition] 1737 | static void CheckDevice(Dev1, Dev2) | ^~~~~~~~~~~ devices.c: In function 'SearchCheck': devices.c:1772:12: warning: old-style function definition [-Wold-style-definition] 1772 | extern int SearchCheck(Name, Argv) | ^~~~~~~~~~~ devices.c: In function 'DeviceRemoveLinks': devices.c:1789:12: warning: old-style function definition [-Wold-style-definition] 1789 | extern int DeviceRemoveLinks(DevInfo, Parent) | ^~~~~~~~~~~~~~~~~ devices.c: In function 'AddOrphanList': devices.c:1823:13: warning: old-style function definition [-Wold-style-definition] 1823 | static void AddOrphanList(DevInfo) | ^~~~~~~~~~~~~ devices.c: In function 'DevTreeCheck': devices.c:1841:12: warning: old-style function definition [-Wold-style-definition] 1841 | static int DevTreeCheck(Parent, DevInfo) | ^~~~~~~~~~~~ devices.c: In function 'DevTreeScan': devices.c:1862:13: warning: old-style function definition [-Wold-style-definition] 1862 | static void DevTreeScan(Parent, DevInfo) | ^~~~~~~~~~~ devices.c: In function 'DevTreeVerify': devices.c:1885:13: warning: old-style function definition [-Wold-style-definition] 1885 | static void DevTreeVerify(TreePtr) | ^~~~~~~~~~~~~ devices.c:1897:9: error: too many arguments to function 'AddDevice'; expected 0, have 3 1897 | AddDevice(Ptr, TreePtr, NULL); | ^~~~~~~~~ ~~~ declare.h:176:33: note: declared here 176 | extern int AddDevice(); | ^~~~~~~~~ devices.c: In function 'AddDevice': devices.c:1904:12: warning: old-style function definition [-Wold-style-definition] 1904 | extern int AddDevice(DevInfo, TreePtr, SearchNames) | ^~~~~~~~~ devices.c:1908:1: error: number of arguments doesn't match prototype 1908 | { | ^ declare.h:176:33: error: prototype declaration 176 | extern int AddDevice(); | ^~~~~~~~~ devices.c:1945:17: error: too many arguments to function 'DevFind'; expected 0, have 1 1945 | if (Found = DevFind(&Find)) { | ^~~~~~~ ~~~~~ devices.c:1662:19: note: declared here 1662 | extern DevInfo_t *DevFind(Find) | ^~~~~~~ devices.c:1967:25: error: too many arguments to function 'strdup'; expected 0, have 1 1967 | DevInfo->Name = strdup(DevInfo->Name); | ^~~~~~ ~~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:1981:22: error: too many arguments to function 'DevFind'; expected 0, have 1 1981 | Master = DevFind(&Find); | ^~~~~~~ ~~~~~ devices.c:1662:19: note: declared here 1662 | extern DevInfo_t *DevFind(Find) | ^~~~~~~ devices.c:1988:17: error: too many arguments to function 'AddDevice'; expected 0, have 3 1988 | if (AddDevice(DevInfo->Master, TreePtr, SearchNames) != 0) { | ^~~~~~~~~ ~~~~~~~~~~~~~~~ devices.c:1904:12: note: declared here 1904 | extern int AddDevice(DevInfo, TreePtr, SearchNames) | ^~~~~~~~~ devices.c:1997:24: error: too many arguments to function 'NewDevInfo'; expected 0, have 1 1997 | *TreePtr = NewDevInfo((DevInfo_t *)NULL); | ^~~~~~~~~~ devices.c:1359:19: note: declared here 1359 | extern DevInfo_t *NewDevInfo(Old) | ^~~~~~~~~~ devices.c:2006:24: error: too many arguments to function 'strdup'; expected 0, have 1 2006 | Master->Name = strdup(Master->Name); | ^~~~~~ ~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c: In function 'DeviceCreate': devices.c:2024:19: warning: old-style function definition [-Wold-style-definition] 2024 | extern DevInfo_t *DeviceCreate(ProbeData) | ^~~~~~~~~~~~ devices.c:2026:1: error: number of arguments doesn't match prototype 2026 | { | ^ declare.h:75:33: error: prototype declaration 75 | extern DevInfo_t *DeviceCreate(); | ^~~~~~~~~~~~ devices.c:2056:19: error: too many arguments to function 'NewDevInfo'; expected 0, have 1 2056 | DevInfo = NewDevInfo((DevInfo_t *) NULL); | ^~~~~~~~~~ devices.c:1359:19: note: declared here 1359 | extern DevInfo_t *NewDevInfo(Old) | ^~~~~~~~~~ devices.c:2073:29: error: too many arguments to function 'strdup'; expected 0, have 1 2073 | DevInfo->Name = strdup(Name); | ^~~~~~ ~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:2075:29: error: too many arguments to function 'MkDevName'; expected 0, have 4 2075 | DevInfo->Name = MkDevName(DevData->DevName, DevData->DevUnit, | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2078:29: error: too many arguments to function 'MkDevName'; expected 0, have 4 2078 | DevInfo->Name = MkDevName(DevData->DevName, DevData->DevUnit, | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2090:29: error: too many arguments to function 'strdup'; expected 0, have 1 2090 | DevAddFile(DevInfo, strdup(ProbeData->DevFile)); | ^~~~~~ ~~~~~~~~~~~~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:2090:9: error: too many arguments to function 'DevAddFile'; expected 0, have 2 2090 | DevAddFile(DevInfo, strdup(ProbeData->DevFile)); | ^~~~~~~~~~ ~~~~~~~ devices.c:147:13: note: declared here 147 | extern void DevAddFile(DevInfo, File) | ^~~~~~~~~~ devices.c:2119:31: error: too many arguments to function 'MkMasterFromDevData'; expected 0, have 1 2119 | DevInfo->Master = MkMasterFromDevData(DevData); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~ declare.h:78:33: note: declared here 78 | extern DevInfo_t *MkMasterFromDevData(); | ^~~~~~~~~~~~~~~~~~~ devices.c:2152:42: error: too many arguments to function 'xcalloc'; expected 0, have 2 2152 | DevInfo->Aliases = (char **) xcalloc(Count+1, sizeof(char *)); | ^~~~~~~ ~~~~~~~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c: In function 'ProbeOSDevInfo': devices.c:2166:19: warning: old-style function definition [-Wold-style-definition] 2166 | extern DevInfo_t *ProbeOSDevInfo(ProbeData) | ^~~~~~~~~~~~~~ devices.c:2186:19: error: too many arguments to function 'MkDevName'; expected 0, have 4 2186 | DevName = MkDevName( | ^~~~~~~~~ 2187 | (DevInfo->Name) ? DevInfo->Name : DevData->DevName, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2194:20: error: too many arguments to function 'TypeGetByType'; expected 0, have 1 2194 | if ((DevType = TypeGetByType(DevInfo->Type)) && DevType->Probe) { | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~ declare.h:200:33: note: declared here 200 | extern DevType_t *TypeGetByType(); | ^~~~~~~~~~~~~ devices.c:2203:17: error: too many arguments to function 'DevType->Probe'; expected 0, have 1 2203 | return((*DevType->Probe)(ProbeData)); | ~^~~~~~~~~~~~~~~~ ~~~~~~~~~ defs.h:723:33: note: declared here 723 | DevInfo_t *(*Probe)(); /* Probe function */ | ^~~~~ devices.c:2208:31: error: too many arguments to function 'MkMasterFromDevData'; expected 0, have 1 2208 | DevInfo->Master = MkMasterFromDevData(DevData); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~ declare.h:78:33: note: declared here 78 | extern DevInfo_t *MkMasterFromDevData(); | ^~~~~~~~~~~~~~~~~~~ devices.c: In function 'SetAlias': devices.c:2225:13: warning: old-style function definition [-Wold-style-definition] 2225 | static void SetAlias(LocPtr, Name) | ^~~~~~~~ devices.c:2245:26: error: too many arguments to function 'xrealloc'; expected 0, have 2 2245 | List = (char **) xrealloc(List, (Count + 2) * sizeof(char *)); | ^~~~~~~~ ~~~~ declare.h:54:33: note: declared here 54 | void *xrealloc(); | ^~~~~~~~ devices.c:2249:26: error: too many arguments to function 'xcalloc'; expected 0, have 2 2249 | List = (char **) xcalloc(2, sizeof(char *)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c: In function 'ProbeDevice': devices.c:2260:19: warning: old-style function definition [-Wold-style-definition] 2260 | extern DevInfo_t *ProbeDevice(DevData, TreePtr, Search, OfferDevDef) | ^~~~~~~~~~~ devices.c:2265:1: error: number of arguments doesn't match prototype 2265 | { | ^ declare.h:79:33: error: prototype declaration 79 | extern DevInfo_t *ProbeDevice(); | ^~~~~~~~~~~ devices.c:2285:21: error: too many arguments to function 'DevDefGet'; expected 0, have 3 2285 | DevDefine = DevDefGet(DevData->DevName, 0, 0); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ declare.h:62:33: note: declared here 62 | extern DevDefine_t *DevDefGet(); | ^~~~~~~~~ devices.c:2294:34: error: too many arguments to function 'TypeGetByType'; expected 0, have 1 2294 | if (DevTypeNum && (DevType = TypeGetByType(DevTypeNum))) | ^~~~~~~~~~~~~ ~~~~~~~~~~ declare.h:200:33: note: declared here 200 | extern DevType_t *TypeGetByType(); | ^~~~~~~~~~~~~ devices.c:2319:24: error: too many arguments to function 'MkDevName'; expected 0, have 4 2319 | Name = MkDevName(*cpp, DevData->DevUnit, DevDefine->Type, | ^~~~~~~~~ ~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2329:24: error: too many arguments to function 'MkDevName'; expected 0, have 4 2329 | Name = MkDevName(DevName, DevData->DevUnit, | ^~~~~~~~~ ~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2335:20: error: too many arguments to function 'MkDevName'; expected 0, have 4 2335 | Name = MkDevName(DevName, DevData->DevUnit, | ^~~~~~~~~ ~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2338:20: error: too many arguments to function 'MkDevName'; expected 0, have 4 2338 | Name = MkDevName(DevName, DevData->DevUnit, | ^~~~~~~~~ ~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2341:20: error: too many arguments to function 'MkDevName'; expected 0, have 4 2341 | Name = MkDevName(DevName, DevData->DevUnit, 0, 0); | ^~~~~~~~~ ~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2347:21: error: too many arguments to function 'DevFind'; expected 0, have 1 2347 | if (Found = DevFind(&Find)) { | ^~~~~~~ ~~~~~ devices.c:1662:19: note: declared here 1662 | extern DevInfo_t *DevFind(Find) | ^~~~~~~ devices.c:2352:17: error: too many arguments to function 'ProbeFunc'; expected 0, have 1 2352 | return((*ProbeFunc)(&ProbeData)); | ~^~~~~~~~~~~ ~~~~~~~~~~ devices.c:2364:16: error: too many arguments to function 'DeviceCreate'; expected 0, have 1 2364 | return(DeviceCreate(&ProbeData)); | ^~~~~~~~~~~~ ~~~~~~~~~~ devices.c:2024:19: note: declared here 2024 | extern DevInfo_t *DeviceCreate(ProbeData) | ^~~~~~~~~~~~ devices.c:2373:16: error: too many arguments to function 'ProbeUnknown'; expected 0, have 1 2373 | return(ProbeUnknown(&ProbeData)); | ^~~~~~~~~~~~ ~~~~~~~~~~ devices.c:2273:33: note: declared here 2273 | DevInfo_t *ProbeUnknown(); | ^~~~~~~~~~~~ devices.c: In function 'MkMasterFromDevData': devices.c:2383:19: warning: old-style function definition [-Wold-style-definition] 2383 | extern DevInfo_t *MkMasterFromDevData(DevData) | ^~~~~~~~~~~~~~~~~~~ devices.c:2385:1: error: number of arguments doesn't match prototype 2385 | { | ^ declare.h:78:33: error: prototype declaration 78 | extern DevInfo_t *MkMasterFromDevData(); | ^~~~~~~~~~~~~~~~~~~ devices.c:2392:19: error: too many arguments to function 'NewDevInfo'; expected 0, have 1 2392 | DevInfo = NewDevInfo(NULL); | ^~~~~~~~~~ ~~~~ devices.c:1359:19: note: declared here 1359 | extern DevInfo_t *NewDevInfo(Old) | ^~~~~~~~~~ devices.c:2393:25: error: too many arguments to function 'DevDefGet'; expected 0, have 3 2393 | if (DevDefine = DevDefGet(DevData->CtlrName, 0, 0)) { | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ declare.h:62:33: note: declared here 62 | extern DevDefine_t *DevDefGet(); | ^~~~~~~~~ devices.c:2399:25: error: too many arguments to function 'MkDevName'; expected 0, have 4 2399 | DevInfo->Name = MkDevName(DevData->CtlrName, | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ declare.h:126:33: note: declared here 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c: In function 'GetRawFile': devices.c:2410:14: warning: old-style function definition [-Wold-style-definition] 2410 | extern char *GetRawFile(Name, Part) | ^~~~~~~~~~ devices.c:2413:1: error: number of arguments doesn't match prototype 2413 | { | ^ declare.h:164:33: error: prototype declaration 164 | extern char *GetRawFile(); | ^~~~~~~~~~ devices.c: In function 'GetCharFile': devices.c:2428:14: warning: old-style function definition [-Wold-style-definition] 2428 | extern char *GetCharFile(Name, Part) | ^~~~~~~~~~~ devices.c:2431:1: error: number of arguments doesn't match prototype 2431 | { | ^ declare.h:138:33: error: prototype declaration 138 | extern char *GetCharFile(); | ^~~~~~~~~~~ devices.c: In function 'AssignDevUnit': devices.c:2445:12: warning: old-style function definition [-Wold-style-definition] 2445 | static int AssignDevUnit(DevName) | ^~~~~~~~~~~~~ devices.c:2458:41: error: too many arguments to function 'xcalloc'; expected 0, have 2 2458 | Ptr = New = (struct DevUnits *) xcalloc(1, sizeof(struct DevUnits)); | ^~~~~~~ ~ declare.h:55:33: note: declared here 55 | void *xcalloc(); | ^~~~~~~ devices.c:2459:21: error: too many arguments to function 'strdup'; expected 0, have 1 2459 | New->Name = strdup(DevName); | ^~~~~~ ~~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c: In function 'MkDevName': devices.c:2473:14: warning: old-style function definition [-Wold-style-definition] 2473 | extern char *MkDevName(Name, Unit, Type, DdtFlags) | ^~~~~~~~~ devices.c:2478:1: error: number of arguments doesn't match prototype 2478 | { | ^ declare.h:126:33: error: prototype declaration 126 | extern char *MkDevName(); | ^~~~~~~~~ devices.c:2504:13: error: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] 2504 | if (isdigit(Name[strlen(Name) - 1])) | ^~~~~~~ devices.c:19:1: note: include '' or provide a declaration of 'isdigit' 18 | #include "defs.h" +++ |+#include 19 | devices.c:2510:12: error: too many arguments to function 'strdup'; expected 0, have 1 2510 | return(strdup(Buff)); | ^~~~~~ ~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c: In function 'MkMasterName': devices.c:2516:14: warning: old-style function definition [-Wold-style-definition] 2516 | extern char *MkMasterName(DevData, DdtFlags) | ^~~~~~~~~~~~ devices.c:2519:1: error: number of arguments doesn't match prototype 2519 | { | ^ declare.h:127:33: error: prototype declaration 127 | extern char *MkMasterName(); | ^~~~~~~~~~~~ devices.c:2525:14: error: too many arguments to function 'DevDefGet'; expected 0, have 3 2525 | DevDef = DevDefGet(DevData->CtlrName, 0, 0); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ declare.h:62:33: note: declared here 62 | extern DevDefine_t *DevDefGet(); | ^~~~~~~~~ devices.c:2527:12: error: too many arguments to function 'MkDevName'; expected 0, have 4 2527 | return(MkDevName(DevData->CtlrName, DevData->CtlrUnit, | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ devices.c:2473:14: note: declared here 2473 | extern char *MkDevName(Name, Unit, Type, DdtFlags) | ^~~~~~~~~ devices.c: In function 'ProbeUnknown': devices.c:2535:19: warning: old-style function definition [-Wold-style-definition] 2535 | extern DevInfo_t *ProbeUnknown(ProbeData) | ^~~~~~~~~~~~ devices.c:2537:1: error: number of arguments doesn't match prototype 2537 | { | ^ devices.c:2273:33: error: prototype declaration 2273 | DevInfo_t *ProbeUnknown(); | ^~~~~~~~~~~~ devices.c:2545:15: error: too many arguments to function 'NewDevInfo'; expected 0, have 1 2545 | DevInfo = NewDevInfo((DevInfo_t *) NULL); | ^~~~~~~~~~ devices.c:1359:19: note: declared here 1359 | extern DevInfo_t *NewDevInfo(Old) | ^~~~~~~~~~ devices.c:2546:28: error: too many arguments to function 'MkDevName'; expected 0, have 4 2546 | DevInfo->Name = strdup(MkDevName(DevData->DevName, | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ devices.c:2473:14: note: declared here 2473 | extern char *MkDevName(Name, Unit, Type, DdtFlags) | ^~~~~~~~~ devices.c:2546:21: error: too many arguments to function 'strdup'; expected 0, have 1 2546 | DevInfo->Name = strdup(MkDevName(DevData->DevName, | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2547 | DevData->DevUnit, | ~~~~~~~~~~~~~~~~~ 2548 | -1, 0)); | ~~~~~~ declare.h:46:33: note: declared here 46 | char *strdup(); | ^~~~~~ devices.c:2553:23: error: too many arguments to function 'MkMasterFromDevData'; expected 0, have 1 2553 | DevInfo->Master = MkMasterFromDevData(DevData); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~ devices.c:2383:19: note: declared here 2383 | extern DevInfo_t *MkMasterFromDevData(DevData) | ^~~~~~~~~~~~~~~~~~~ devices.c: In function 'FreqStr': devices.c:2561:14: warning: old-style function definition [-Wold-style-definition] 2561 | extern char *FreqStr(freq) | ^~~~~~~ devices.c:2563:1: error: number of arguments doesn't match prototype 2563 | { | ^ declare.h:96:33: error: prototype declaration 96 | extern char *FreqStr(); | ^~~~~~~ *** [devices.o] Error code 1 make[2]: stopped making "all" in /tmp/work/sysutils/sysinfo/work/sysinfo-3.5.1 make[2]: 2 errors make[2]: stopped making "all" in /tmp/work/sysutils/sysinfo/work/sysinfo-3.5.1 *** [sunos5] Error code 2 make[1]: stopped making "sunos5" in /tmp/work/sysutils/sysinfo/work/sysinfo-3.5.1 make[1]: 1 error make[1]: stopped making "sunos5" in /tmp/work/sysutils/sysinfo/work/sysinfo-3.5.1 *** [default] Error code 2 bmake: stopped making "default" in /tmp/work/sysutils/sysinfo/work/sysinfo-3.5.1 bmake: 1 error bmake: stopped making "default" in /tmp/work/sysutils/sysinfo/work/sysinfo-3.5.1 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/sysinfo *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/sysinfo