[maemo-commits] [maemo-commits] r16740 - projects/haf/trunk/hildon-thumbnail/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Tue Nov 18 15:45:46 EET 2008
- Previous message: [maemo-commits] r16739 - projects/haf/trunk/hildon-thumbnail/daemon
- Next message: [maemo-commits] r16741 - projects/haf/tags/osso-af-startup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof
Date: 2008-11-18 15:45:45 +0200 (Tue, 18 Nov 2008)
New Revision: 16740
Modified:
projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c
Log:
Removed unneeded code
Modified: projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c 2008-11-18 13:36:46 UTC (rev 16739)
+++ projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c 2008-11-18 13:45:45 UTC (rev 16740)
@@ -27,6 +27,10 @@
#include "config.h"
#endif
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <string.h>
#include <ctype.h>
#include <glib.h>
@@ -296,29 +300,6 @@
dbus_g_method_return (context, num);
}
-#ifndef strcasestr
-static char *
-strcasestr (char *haystack, char *needle)
-{
- char *p, *startn = 0, *np = 0;
-
- for (p = haystack; *p; p++) {
- if (np) {
- if (toupper(*p) == toupper(*np)) {
- if (!*++np)
- return startn;
- } else
- np = 0;
- } else if (toupper(*p) == toupper(*needle)) {
- np = needle + 1;
- startn = p;
- }
- }
-
- return 0;
-}
-#endif
-
static gboolean
strv_contains (GStrv list, gchar *uri)
{
- Previous message: [maemo-commits] r16739 - projects/haf/trunk/hildon-thumbnail/daemon
- Next message: [maemo-commits] r16741 - projects/haf/tags/osso-af-startup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
