Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
1885e59a
Commit
1885e59a
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Fix some NetBSD warnings
parent
82de7024
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/dirwrap.c
+2
-2
2 additions, 2 deletions
src/xpdev/dirwrap.c
src/xpdev/xpbeep.c
+2
-2
2 additions, 2 deletions
src/xpdev/xpbeep.c
with
4 additions
and
4 deletions
src/xpdev/dirwrap.c
+
2
−
2
View file @
1885e59a
...
...
@@ -950,8 +950,8 @@ static uint64_t getdiskspace(const char* path, uint64_t unit, bool freespace)
struct
statvfs
fs
;
uint64_t
blocks
;
if
(
statvfs
(
path
,
&
fs
)
<
0
)
return
0
;
if
(
statvfs
(
path
,
&
fs
)
<
0
)
return
0
;
if
(
freespace
)
blocks
=
fs
.
f_bavail
;
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/xpbeep.c
+
2
−
2
View file @
1885e59a
...
...
@@ -1183,8 +1183,6 @@ bool xptone(double freq, DWORD duration, enum WAVE_SHAPE shape)
/****************************************************************************/
void
unix_beep
(
int
freq
,
int
dur
)
{
static
int
console_fd
=-
1
;
#if (defined(__FreeBSD__) && defined(HAS_MACHINE_SPEAKER_H)) || ((defined(__OpenBSD__) || defined(__NetBSD__)) && defined(HAS_MACHINE_SPKR_H))
int
speaker_fd
=-
1
;
tone_t
tone
;
...
...
@@ -1200,6 +1198,8 @@ void unix_beep(int freq, int dur)
#endif
#if !defined(__GNU__) && !defined(__QNX__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(__HAIKU__) && !defined(__EMSCRIPTEN__)
static
int
console_fd
=-
1
;
if
(
console_fd
==
-
1
)
console_fd
=
open
(
"/dev/console"
,
O_NOCTTY
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment