Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
1d939538
Commit
1d939538
authored
Nov 02, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a few extra strerror()'s sprinkled in the code
git-svn-id:
https://svn.musicpd.org/mpd/trunk@2467
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
46792b17
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
conf.c
src/conf.c
+3
-1
playlist.c
src/playlist.c
+4
-2
sig_handlers.c
src/sig_handlers.c
+0
-1
signal_check.c
src/signal_check.c
+0
-2
No files found.
src/conf.c
View file @
1d939538
...
...
@@ -31,6 +31,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#include <errno.h>
#define MAX_STRING_SIZE MAXPATHLEN+80
...
...
@@ -228,7 +229,8 @@ void readConf(char * file) {
ConfigParam
*
param
;
if
(
!
(
fp
=
fopen
(
file
,
"r"
)))
{
ERROR
(
"problems opening file %s for reading
\n
"
,
file
);
ERROR
(
"problems opening file %s for reading: %s
\n
"
,
file
,
strerror
(
errno
));
exit
(
EXIT_FAILURE
);
}
...
...
src/playlist.c
View file @
1d939538
...
...
@@ -258,7 +258,8 @@ void savePlaylistState() {
while
(
!
(
fp
=
fopen
(
playlist_stateFile
,
"w"
))
&&
errno
==
EINTR
);
if
(
!
fp
)
{
ERROR
(
"problems opening state file
\"
%s
\"
for "
"writing
\n
"
,
playlist_stateFile
);
"writing: %s
\n
"
,
playlist_stateFile
,
sterror
(
errno
));
return
;
}
...
...
@@ -353,7 +354,8 @@ void readPlaylistState() {
fp
=
fopen
(
playlist_stateFile
,
"r"
);
if
(
!
fp
)
{
ERROR
(
"problems opening state file
\"
%s
\"
for "
"reading
\n
"
,
playlist_stateFile
);
"reading: %s
\n
"
,
playlist_stateFile
,
strerror
(
errno
));
exit
(
EXIT_FAILURE
);
}
...
...
src/sig_handlers.c
View file @
1d939538
...
...
@@ -126,4 +126,3 @@ void unblockSignals() {
sigaddset
(
&
sset
,
SIGTERM
);
while
(
sigprocmask
(
SIG_UNBLOCK
,
&
sset
,
NULL
)
<
0
&&
errno
==
EINTR
);
}
/* vim:set shiftwidth=4 tabstop=8 expandtab: */
src/signal_check.c
View file @
1d939538
...
...
@@ -56,5 +56,3 @@ void signal_clear(int sig)
{
__caught_signals
[
sig
]
=
0
;
}
/* vim:set shiftwidth=4 tabstop=8 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment