Nick Briggs
8d42e7791f
Merge branch 'freebsd'
2017-06-08 11:23:40 -07:00
Nick Briggs
208bce9b40
Use unsigned instead of int where, on modern systems, socklen_t would be appropriate.
2017-06-08 11:21:23 -07:00
Nick Briggs
eae092e02b
Initialize keystring as empty string.
...
Declare help string as const.
Print the helpstring through a %s format rather than using it directly.
Don't bother to check the address of allocated keystring for NULL.
modified: main.c
2017-06-08 08:46:54 -07:00
Nick Briggs
224e6478bd
Fix warning for comment within comment.
...
modified: vmemsave.c
2017-06-08 08:24:41 -07:00
Nick Briggs
04b0b3ee0b
Add new include file xscroll.h defining the Scroll functions implemented in xscroll.c
...
and used in xwinman.c
Update function declarations from K&R style to new style.
Fix incorrect argument counts for some procedure calls.
new file: ../inc/xscroll.h
modified: xscroll.c
modified: xwinman.c
2017-06-07 23:53:03 -07:00
Nick Briggs
9ea244b927
Use correct type (unsigned) for message length.
...
modified: rpc.c
2017-06-07 21:21:15 -07:00
Nick Briggs
2c3fb229d1
Add braces to suppress dangling else warning.
...
modified: vars3.c
2017-06-07 20:54:52 -07:00
Nick Briggs
3d47027d31
Clean up error message for case where sysout is not integral number of pages.
...
Correct format string (%lx) for size of argument (long).
modified: ldsout.c
2017-06-07 20:50:30 -07:00
Nick Briggs
ce13dce279
Convert 0x%x to %p where appropriate.
...
modified: llstk.c
2017-06-07 20:40:43 -07:00
Nick Briggs
25b0a24e3f
Convert from K&R style parameter declaration to modern.
...
modified: keyevent.c
2017-06-07 20:18:47 -07:00
Nick Briggs
154d07edce
Remove unused argument from printf().
...
modified: initkbd.c
2017-06-07 20:11:57 -07:00
Nick Briggs
1b7a7fc6fc
Correct format strings and arguments.
...
modified: gcarray.c
2017-06-07 20:09:11 -07:00
Nick Briggs
f4f9118a7c
Add casts to match calculations to format specifier.
...
modified: gccode.c
2017-06-07 20:03:31 -07:00
Nick Briggs
4fe917e2d8
Fix unsequenced modification and access to 'addr'
...
Fix incorrect format string for type, replacing 0x%x with %p.
modified: gcfinal.c
2017-06-07 19:59:00 -07:00
Nick Briggs
9510746af4
Add comment regarding return from NewEntry macro.
...
modified: gchtfind.c
2017-06-07 19:57:40 -07:00
Nick Briggs
409f1f5987
Add missing comment closing delimiter to suppress warning for nested comments.
...
modified: gcr.c
2017-06-07 18:37:15 -07:00
Nick Briggs
e2264ff1f9
Add braces to suppress warning for dangling else clause.
...
modified: gcoflow.c
2017-06-07 18:33:53 -07:00
Nick Briggs
0dc8820060
Add "l" qualifiers to printf format strings for long types.
...
modified: dspif.c
2017-06-07 17:51:48 -07:00
Nick Briggs
de2ae84bfc
Explicitly cast cursor bitmap to char * to match XCreatePixmapFromBitmapData
...
modified: xcursor.c
2017-06-07 17:42:50 -07:00
Nick Briggs
118a3e7750
Correct signedness of window parameters used in XParseGeometry.
...
Signed x, y, Unsigned width, height.
modified: xinit.c
modified: xlspwin.c
modified: xrdopt.c
2017-06-07 17:19:02 -07:00
Nick Briggs
1dadac1888
Clean up types (long unsigned int => unsigned long).
...
Add "l" qualifiers to printf format strings for long types.
Rewrite input string handling in keymaker.c to get rid of unsafe gets().
2017-06-07 16:58:45 -07:00
Nick Briggs
ac563a69f3
Replace 0x%x with %p for pointer output in error messages. %p arrived in C89.
2017-06-07 14:33:31 -07:00
Nick Briggs
4eaf562a8a
Add parentheses to correct interpretation of word-alignment check due to operator precedence confusion.
2017-06-07 14:21:10 -07:00
Nick Briggs
cea2223dae
Convert to modern parameter declaration style.
2017-06-07 12:08:23 -07:00
Nick Briggs
24d210f8d3
Initialize various X structures to 0 as not all fields are explicitly set. Remove PPosition from size hints as we don't set position.
2017-06-07 12:07:23 -07:00
Nick Briggs
b647f69497
Add missing include stdio.h, only required if DEBUG or TRACE is defined, but doesn't hurt.
2017-06-07 12:03:28 -07:00
Nick Briggs
b033302d2a
Remove duplicate #defines for items that are in display.h
2017-06-07 12:00:08 -07:00
Nick Briggs
06b9d1fc1f
Reformat at width=120, seems to work better for initialization tables.
2017-06-06 17:25:11 -07:00
Nick Briggs
9f01c92438
Fix erroneous assignment instead of comparison in if-expression.
2017-05-29 12:13:35 -07:00
Nick Briggs
9911a80bef
Fix warning for /* within comment block
2017-05-29 11:57:59 -07:00
Nick Briggs
193d1ce6c2
Handle missing sysout name as intended.
2017-05-29 11:52:26 -07:00
Nick Briggs
203d02caed
Correct unsequenced modification and access to 'base'
2017-05-28 21:38:51 -07:00
Nick Briggs
e08d3ce887
Wrap assignments used as if-condition in parens to suppress warning.
2017-05-28 19:46:39 -07:00
Nick Briggs
eb4337fdc2
Restore signal handler setup.
2017-05-28 19:38:08 -07:00
Nick Briggs
a6f00921ca
condition and increment reversed in for-loop.
2017-05-28 19:35:13 -07:00
Nick Briggs
349b2566da
Fix UDP send case to handle errors correctly whether BYTESWAP is defined or not (like TCP send)
2017-05-28 19:29:59 -07:00
Nick Briggs
156c3292f8
Reformat all C source files with Clang-format in Google style w/ 100 col width.
2017-05-28 18:08:18 -07:00
Nick Briggs
691645d048
Fix missing return types on functions, convert some functions with always ignored results to void.
2017-05-28 15:08:42 -07:00
Nick Briggs
ce2fa3a119
Cleanup warnings for missing/wrong include files
2017-05-25 15:48:08 -07:00
Nick Briggs
e859670886
correct signal handler type for MacOS and FreeBSD int_timer_service.
2017-05-25 13:10:43 -07:00
Nick Briggs
a8fe2094fe
FreeBSD now uses dirent.h rather than sys/dir.h
2017-05-25 13:09:39 -07:00
Nick Briggs
02569edbe0
First cleanup to get to compiling (warnings, no errors) FreeBSD
2017-05-25 12:51:47 -07:00
Nick Briggs
be2101ac49
FreeBSD has just plain <termios.h>
2017-05-24 21:00:10 -07:00
Nick Briggs
4e6bbcbc1d
Use C-style comments only.
2017-05-24 19:19:34 -07:00
Nick Briggs
e311f51fdb
FreeBSD behaves similarly to MacOS for tcgetattr/tcsetattr
2017-05-24 19:15:12 -07:00
Nick Briggs
15d00637fd
Correct return type of lcfuncall to LispPTR. Remove call to DOSTACKOVERFLOW which can't be called in function that is not void return type.
2017-05-24 18:09:21 -07:00
Nick Briggs
8adfe96bd2
Add check for defined(WAITINT) to control whether wait status is int * for cases where SYSVONLY isn't appropriate
2017-05-24 18:02:35 -07:00
Nick Briggs
0557f1a4cd
Reformat with clang-format to improve readability.
...
Add forward declaration for ccfuncall changing to void type.
Change bitbltsub return type to void to be consistent with usage.
Change bltchar return type to void to be consistent with usage.
Change newbltchar return type to void to be consistent with usage. XXX: alternative version not updated yet.
Change tedit_bltchar return type to void to be consistent with usage.
2017-05-24 17:48:23 -07:00
Nick Briggs
254193baab
Add missing void declaration.
2017-05-24 17:32:41 -07:00
Nick Briggs
08227e1ea2
Add missing void declaration.
2017-05-24 17:31:13 -07:00