aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-28 19:54:49 +0100
committerMax Kellermann <max@duempel.org>2008-12-28 19:54:49 +0100
commit859aac7242fe3767c19c1bfff73d5e6159cbad31 (patch)
tree2e433f6ec1a820d99ad171ffd6a49a6828ddd0e4 /src/utils.c
parent2598cdd86814c7792a431470a9143d609399697b (diff)
downloadmpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.tar.gz
mpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.tar.xz
mpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.zip
utils: removed myFgets()
Replaced myFgets() with fgets() + g_strchomp().
Diffstat (limited to '')
-rw-r--r--src/utils.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/utils.c b/src/utils.c
index 1b12cd810..9d763c484 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -33,18 +33,6 @@
#include <sys/socket.h>
#endif
-char *myFgets(char *buffer, int bufferSize, FILE * fp)
-{
- char *ret = fgets(buffer, bufferSize, fp);
- if (ret && strlen(buffer) > 0 && buffer[strlen(buffer) - 1] == '\n') {
- buffer[strlen(buffer) - 1] = '\0';
- }
- if (ret && strlen(buffer) > 0 && buffer[strlen(buffer) - 1] == '\r') {
- buffer[strlen(buffer) - 1] = '\0';
- }
- return ret;
-}
-
void stripReturnChar(char *string)
{
while (string && (string = strchr(string, '\n'))) {