Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@kali:~# gcc sh.c
- In file included from defs.h:75,
- from sh.c:10:
- mode.h:46:15: error: array type has incomplete element type ‘struct sysnod’
- 46 | STRUCT sysnod SYSTAB[];
- | ^~~~~~
- mode.h:55:7: warning: unnamed struct/union that defines no instances
- 55 | union { int _cheat;};
- | ^
- mode.h:76:8: error: expected ‘{’ before ‘void’
- 76 | struct void {INT vvvvvvvv;};
- | ^~~~
- mode.h:76:8: error: two or more data types in declaration specifiers
- In file included from sh.c:10:
- defs.h:80:15: warning: conflicting types for built-in function ‘malloc’; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch]
- 80 | #define alloc malloc
- | ^~~~~~
- defs.h:81:10: note: in expansion of macro ‘alloc’
- 81 | ADDRESS alloc();
- | ^~~~~
- defs.h:77:1: note: ‘malloc’ is declared in header ‘<stdlib.h>’
- 76 | #include "name.h"
- +++ |+#include <stdlib.h>
- 77 |
- In file included from sh.c:10:
- defs.h:150:9: warning: type defaults to ‘int’ in declaration of ‘reserved’ [-Wimplicit-int]
- 150 | SYSTAB reserved;
- | ^~~~~~~~
- sh.c: In function ‘expand’:
- sh.c:30:5: warning: type of ‘rflg’ defaults to ‘int’ [-Wimplicit-int]
- 30 | INT expand(as,rflg)
- | ^~~~~~
- sh.c:68:17: warning: implicit declaration of function ‘open’; did you mean ‘opendir’? [-Wimplicit-function-declaration]
- 68 | ANDF (dirf=open(s,0))>0
- | ^~~~
- | opendir
- sh.c:80:9: warning: implicit declaration of function ‘read’; did you mean ‘readpr’? [-Wimplicit-function-declaration]
- 80 | WHILE read(dirf, &entry, 16) == 16 ANDF (trapnote&SIGSET) == 0
- | ^~~~
- | readpr
- sh.c:85:7: warning: implicit declaration of function ‘gmatch’ [-Wimplicit-function-declaration]
- 85 | IF gmatch(entry.d_name, cs)
- | ^~~~~~
- sh.c:89:3: warning: implicit declaration of function ‘close’; did you mean ‘closedir’? [-Wimplicit-function-declaration]
- 89 | close(dirf);
- | ^~~~~
- | closedir
- sh.c: At top level:
- sh.c:114:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
- 114 | gmatch(s, p)
- | ^~~~~~
- sh.c:159:12: error: static declaration of ‘addg’ follows non-static declaration
- 159 | LOCAL VOID addg(as1,as2,as3)
- | ^~~~
- sh.c:27:11: note: previous declaration of ‘addg’ was here
- 27 | PROC VOID addg();
- | ^~~~
- sh.c: In function ‘addg’:
- sh.c:181:2: warning: implicit declaration of function ‘makearg’ [-Wimplicit-function-declaration]
- 181 | makearg(endstak(s2));
- | ^~~~~~~
- sh.c: At top level:
- sh.c:184:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
- 184 | makearg(args)
- | ^~~~~~~
- sh.c: In function ‘makearg’:
- sh.c:187:6: error: request for member ‘argnxt’ in something not a structure or union
- 187 | args->argnxt=gchain;
- | ^~
- sh.c:188:8: warning: assignment to ‘ARGPTR’ {aka ‘struct argnod *’} from incompatible pointer type ‘STRING’ {aka ‘char *’} [-Wincompatible-pointer-types]
- 188 | gchain=args;
- | ^
- In file included from sh.c:10:
- sh.c: At top level:
- defs.h:139:6: warning: array ‘atline’ assumed to have one element
- 139 | MSG atline;
- | ^~~~~~
- defs.h:140:6: warning: array ‘readmsg’ assumed to have one element
- 140 | MSG readmsg;
- | ^~~~~~~
- defs.h:141:6: warning: array ‘colon’ assumed to have one element
- 141 | MSG colon;
- | ^~~~~
- defs.h:142:6: warning: array ‘minus’ assumed to have one element
- 142 | MSG minus;
- | ^~~~~
- defs.h:143:6: warning: array ‘nullstr’ assumed to have one element
- 143 | MSG nullstr;
- | ^~~~~~~
- defs.h:144:6: warning: array ‘sptbnl’ assumed to have one element
- 144 | MSG sptbnl;
- | ^~~~~~
- defs.h:145:6: warning: array ‘unexpected’ assumed to have one element
- 145 | MSG unexpected;
- | ^~~~~~~~~~
- defs.h:146:6: warning: array ‘endoffile’ assumed to have one element
- 146 | MSG endoffile;
- | ^~~~~~~~~
- defs.h:147:6: warning: array ‘synmsg’ assumed to have one element
- 147 | MSG synmsg;
- | ^~~~~~
- defs.h:158:6: warning: array ‘stdprompt’ assumed to have one element
- 158 | MSG stdprompt;
- | ^~~~~~~~~
- defs.h:159:6: warning: array ‘supprompt’ assumed to have one element
- 159 | MSG supprompt;
- | ^~~~~~~~~
- defs.h:160:6: warning: array ‘profile’ assumed to have one element
- 160 | MSG profile;
- | ^~~~~~~
- defs.h:172:6: warning: array ‘flagadr’ assumed to have one element
- 172 | MSG flagadr;
- | ^~~~~~~
- defs.h:179:6: warning: array ‘defpath’ assumed to have one element
- 179 | MSG defpath;
- | ^~~~~~~
- defs.h:182:6: warning: array ‘mailname’ assumed to have one element
- 182 | MSG mailname;
- | ^~~~~~~~
- defs.h:183:6: warning: array ‘homename’ assumed to have one element
- 183 | MSG homename;
- | ^~~~~~~~
- defs.h:184:6: warning: array ‘pathname’ assumed to have one element
- 184 | MSG pathname;
- | ^~~~~~~~
- defs.h:185:6: warning: array ‘fngname’ assumed to have one element
- 185 | MSG fngname;
- | ^~~~~~~
- defs.h:186:6: warning: array ‘ifsname’ assumed to have one element
- 186 | MSG ifsname;
- | ^~~~~~~
- defs.h:187:6: warning: array ‘ps1name’ assumed to have one element
- 187 | MSG ps1name;
- | ^~~~~~~
- defs.h:188:6: warning: array ‘ps2name’ assumed to have one element
- 188 | MSG ps2name;
- | ^~~~~~~
- defs.h:191:7: warning: array ‘tmpout’ assumed to have one element
- 191 | CHAR tmpout[];
- | ^~~~~~
- defs.h:200:6: warning: array ‘devnull’ assumed to have one element
- 200 | MSG devnull;
- | ^~~~~~~
- In file included from sh.c:10:
- defs.h:242:9: warning: array ‘trapcom’ assumed to have one element
- 242 | STRING trapcom[];
- | ^~~~~~~
- defs.h:243:7: warning: array ‘trapflg’ assumed to have one element
- 243 | BOOL trapflg[];
- | ^~~~~~~
- defs.h:247:7: warning: array ‘numbuf’ assumed to have one element
- 247 | CHAR numbuf[];
- | ^~~~~~
- defs.h:248:6: warning: array ‘export’ assumed to have one element
- 248 | MSG export;
- | ^~~~~~
- defs.h:249:6: warning: array ‘readonly’ assumed to have one element
- 249 | MSG readonly;
- | ^~~~~~~~
- defs.h:258:6: warning: array ‘mailmsg’ assumed to have one element
- 258 | MSG mailmsg;
- | ^~~~~~~
- defs.h:259:6: warning: array ‘coredump’ assumed to have one element
- 259 | MSG coredump;
- | ^~~~~~~~
- defs.h:260:6: warning: array ‘badopt’ assumed to have one element
- 260 | MSG badopt;
- | ^~~~~~
- defs.h:261:6: warning: array ‘badparam’ assumed to have one element
- 261 | MSG badparam;
- | ^~~~~~~~
- defs.h:262:6: warning: array ‘badsub’ assumed to have one element
- 262 | MSG badsub;
- | ^~~~~~
- defs.h:263:6: warning: array ‘nospace’ assumed to have one element
- 263 | MSG nospace;
- | ^~~~~~~
- defs.h:281:6: warning: array ‘notfound’ assumed to have one element
- 281 | MSG notfound;
- | ^~~~~~~~
- defs.h:265:6: warning: array ‘badtrap’ assumed to have one element
- 265 | MSG badtrap;
- | ^~~~~~~
- defs.h:266:6: warning: array ‘baddir’ assumed to have one element
- 266 | MSG baddir;
- | ^~~~~~
- defs.h:267:6: warning: array ‘badshift’ assumed to have one element
- 267 | MSG badshift;
- | ^~~~~~~~
- defs.h:268:6: warning: array ‘illegal’ assumed to have one element
- 268 | MSG illegal;
- | ^~~~~~~
- defs.h:269:6: warning: array ‘restricted’ assumed to have one element
- 269 | MSG restricted;
- | ^~~~~~~~~~
- defs.h:270:6: warning: array ‘execpmsg’ assumed to have one element
- 270 | MSG execpmsg;
- | ^~~~~~~~
- defs.h:271:6: warning: array ‘notid’ assumed to have one element
- 271 | MSG notid;
- | ^~~~~
- defs.h:272:6: warning: array ‘wtfailed’ assumed to have one element
- 272 | MSG wtfailed;
- | ^~~~~~~~
- defs.h:273:6: warning: array ‘badcreate’ assumed to have one element
- 273 | MSG badcreate;
- | ^~~~~~~~~
- defs.h:274:6: warning: array ‘piperr’ assumed to have one element
- 274 | MSG piperr;
- | ^~~~~~
- defs.h:275:6: warning: array ‘badopen’ assumed to have one element
- 275 | MSG badopen;
- | ^~~~~~~
- defs.h:276:6: warning: array ‘badnum’ assumed to have one element
- 276 | MSG badnum;
- | ^~~~~~
- defs.h:277:6: warning: array ‘arglist’ assumed to have one element
- 277 | MSG arglist;
- | ^~~~~~~
- defs.h:278:6: warning: array ‘txtbsy’ assumed to have one element
- 278 | MSG txtbsy;
- | ^~~~~~
- defs.h:279:6: warning: array ‘toobig’ assumed to have one element
- 279 | MSG toobig;
- | ^~~~~~
- defs.h:280:6: warning: array ‘badexec’ assumed to have one element
- 280 | MSG badexec;
- | ^~~~~~~
- defs.h:282:6: warning: array ‘badfile’ assumed to have one element
- 282 | MSG badfile;
- | ^~~~~~~
- defs.h:284:9: warning: array ‘end’ assumed to have one element
- 284 | address end[];
- | ^~~
- In file included from defs.h:286,
- from sh.c:10:
- ctype.h:69:6: warning: array ‘_ctype1’ assumed to have one element
- 69 | char _ctype1[];
- | ^~~~~~~
- ctype.h:80:6: warning: array ‘_ctype2’ assumed to have one element
- 80 | char _ctype2[];
- | ^~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement