- Timestamp:
- Aug 14, 2016 9:56:30 AM (8 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 5 edited
-
Additions/x11/vboxmouse/vboxmouse.c (modified) (1 diff)
-
Devices/PC/DevPit-i8254.cpp (modified) (3 diffs)
-
ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_consume.c (modified) (1 diff)
-
ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c (modified) (1 diff)
-
ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse.c
r63222 r63435 71 71 /* Read a byte from the device to acknowledge the event */ 72 72 char c; 73 (void) read(pInfo->fd, &c, 1); 73 int res = read(pInfo->fd, &c, 1); 74 NOREF(res); 74 75 /* The first test here is a workaround for an apparent bug in Xorg Server 1.5 */ 75 76 if ( -
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r62890 r63435 920 920 { 921 921 case PIT_SPEAKER_EMU_CONSOLE: 922 { 922 923 int res; 923 924 res = ioctl(pThis->hHostSpeaker, KIOCSOUND, pChan->count); … … 928 929 } 929 930 break; 931 } 930 932 case PIT_SPEAKER_EMU_EVDEV: 933 { 931 934 struct input_event e; 932 935 e.type = EV_SND; 933 936 e.code = SND_TONE; 934 937 e.value = PIT_FREQ / pChan->count; 935 write(pThis->hHostSpeaker, &e, sizeof(struct input_event)); 938 int res = write(pThis->hHostSpeaker, &e, sizeof(struct input_event)); 939 NOREF(res); 936 940 break; 941 } 937 942 case PIT_SPEAKER_EMU_TTY: 938 write(pThis->hHostSpeaker, "\a", 1); 943 { 944 int res = write(pThis->hHostSpeaker, "\a", 1); 945 NOREF(res); 939 946 break; 947 } 940 948 case PIT_SPEAKER_EMU_NONE: 941 949 break; … … 961 969 break; 962 970 case PIT_SPEAKER_EMU_EVDEV: 971 { 963 972 struct input_event e; 964 973 e.type = EV_SND; 965 974 e.code = SND_TONE; 966 975 e.value = 0; 967 write(pThis->hHostSpeaker, &e, sizeof(struct input_event)); 976 int res = write(pThis->hHostSpeaker, &e, sizeof(struct input_event)); 977 NOREF(res); 968 978 break; 979 } 969 980 case PIT_SPEAKER_EMU_TTY: 970 981 break; -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_consume.c
r63129 r63435 1727 1727 1728 1728 case DT_ACT_FTRUNCATE: 1729 { 1729 1730 if (fp == NULL) 1730 1731 continue; 1731 1732 1732 1733 (void) fflush(fp); 1733 (void) ftruncate(fileno(fp), 0); 1734 int res = ftruncate(fileno(fp), 0); 1735 NOREF(res); 1734 1736 (void) fseeko(fp, 0, SEEK_SET); 1735 1737 continue; 1736 1738 } 1737 1739 case DT_ACT_NORMALIZE: 1738 1740 if (i == epd->dtepd_nrecs - 1) -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c
r63207 r63435 109 109 #endif 110 110 111 (void) write(STDERR_FILENO, msg, sizeof (msg) - 1); 111 int res = write(STDERR_FILENO, msg, sizeof (msg) - 1); 112 NOREF(res); 112 113 113 114 #ifndef _MSC_VER -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c
r63369 r63435 1606 1606 1607 1607 if (width != 0) 1608 f += snprintf(f, sizeof (format) , "%d", ABS(width));1608 f += snprintf(f, sizeof (format) - (f - format), "%d", ABS(width)); 1609 1609 1610 1610 if (prec > 0) 1611 f += snprintf(f, sizeof (format) , ".%d", prec);1611 f += snprintf(f, sizeof (format) - (f - format), ".%d", prec); 1612 1612 1613 1613 (void) strcpy(f, pfd->pfd_fmt);
Note:
See TracChangeset
for help on using the changeset viewer.

