42 lines
916 B
Plaintext
42 lines
916 B
Plaintext
$NetBSD: patch-utils-mpo,v 1.1 2012/10/15 22:48:02 drochner Exp $
|
|
|
|
--- utils.c.orig 2012-10-15 18:20:34.000000000 +0000
|
|
+++ utils.c
|
|
@@ -19,7 +19,7 @@
|
|
#include <ctype.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
-#include <linux/limits.h>
|
|
+#include <limits.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
@@ -31,7 +31,7 @@
|
|
#include "upnpglobalvars.h"
|
|
#include "log.h"
|
|
|
|
-inline int
|
|
+int
|
|
strcatf(struct string_s *str, const char *fmt, ...)
|
|
{
|
|
int ret;
|
|
@@ -45,7 +45,7 @@ strcatf(struct string_s *str, const char
|
|
return ret;
|
|
}
|
|
|
|
-inline void
|
|
+void
|
|
strncpyt(char *dst, const char *src, size_t len)
|
|
{
|
|
strncpy(dst, src, len);
|
|
@@ -323,7 +323,8 @@ is_audio(const char * file)
|
|
int
|
|
is_image(const char * file)
|
|
{
|
|
- return (ends_with(file, ".jpg") || ends_with(file, ".jpeg"));
|
|
+ return (ends_with(file, ".jpg") || ends_with(file, ".jpeg") ||
|
|
+ ends_with(file, ".mpo"));
|
|
}
|
|
|
|
int
|