Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: utils/archive/dart_archive.c

Issue 10824210: Fix the archive code so that it compiles in a stricter mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Small fixes Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/archive/entry.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/dart_archive.c
diff --git a/utils/archive/dart_archive.c b/utils/archive/dart_archive.c
index 057adface2f33debc87a32e99065e072dcf39c43..da284a6cb3fa9a7e5182947e15bededdae5fc4a8 100644
--- a/utils/archive/dart_archive.c
+++ b/utils/archive/dart_archive.c
@@ -5,6 +5,7 @@
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
+#include <string.h>
#include "dart_archive.h"
#include "entry.h"
@@ -31,9 +32,9 @@ enum RequestType {
kArchiveReadSupportFormatRaw,
kArchiveReadSupportFormatTar,
kArchiveReadSupportFormatZip,
- kArchiveReadSetFilterOptions,
- kArchiveReadSetFormatOptions,
- kArchiveReadSetOptions,
+ kArchiveReadSetFilterOption,
+ kArchiveReadSetFormatOption,
+ kArchiveReadSetOption,
kArchiveReadOpenFilename,
kArchiveReadOpenMemory,
kArchiveReadNextHeader,
@@ -46,7 +47,6 @@ enum RequestType {
kArchiveEntryNew,
kArchiveEntrySetHardlink,
kArchiveEntrySetPathname,
- kArchiveEntrySetSourcepath,
kArchiveEntrySetSymlink,
kArchiveEntrySetGid,
kArchiveEntrySetUid,
@@ -169,14 +169,14 @@ static void archiveDispatch(Dart_Port dest_port_id,
case kArchiveReadSupportFormatZip:
archiveReadSupportFormatZip(reply_port_id, (struct archive*) ptr);
break;
- case kArchiveReadSetFilterOptions:
- archiveReadSetFilterOptions(reply_port_id, (struct archive*) ptr, message);
+ case kArchiveReadSetFilterOption:
+ archiveReadSetFilterOption(reply_port_id, (struct archive*) ptr, message);
break;
- case kArchiveReadSetFormatOptions:
- archiveReadSetFormatOptions(reply_port_id, (struct archive*) ptr, message);
+ case kArchiveReadSetFormatOption:
+ archiveReadSetFormatOption(reply_port_id, (struct archive*) ptr, message);
break;
- case kArchiveReadSetOptions:
- archiveReadSetOptions(reply_port_id, (struct archive*) ptr, message);
+ case kArchiveReadSetOption:
+ archiveReadSetOption(reply_port_id, (struct archive*) ptr, message);
break;
case kArchiveReadOpenFilename:
archiveReadOpenFilename(reply_port_id, (struct archive*) ptr, message);
@@ -216,10 +216,6 @@ static void archiveDispatch(Dart_Port dest_port_id,
archiveEntrySetPathname(
reply_port_id, (struct archive_entry*) ptr, message);
break;
- case kArchiveEntrySetSourcepath:
- archiveEntrySetSourcepath(
- reply_port_id, (struct archive_entry*) ptr, message);
- break;
case kArchiveEntrySetSymlink:
archiveEntrySetSymlink(reply_port_id, (struct archive_entry*) ptr, message);
break;
@@ -246,10 +242,6 @@ static void archiveDispatch(Dart_Port dest_port_id,
archiveEntrySetFflagsClear(
reply_port_id, (struct archive_entry*) ptr, message);
break;
- case kArchiveEntrySetFflagsText:
- archiveEntrySetFflagsText(
- reply_port_id, (struct archive_entry*) ptr, message);
- break;
case kArchiveEntrySetFiletype:
archiveEntrySetFiletype(
reply_port_id, (struct archive_entry*) ptr, message);
« no previous file with comments | « no previous file | utils/archive/entry.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698