changeset 1096:bd988ddb1251

add a couple of const
author Jorge Arellano Cid <jcid@dillo.org>
date Fri, 15 May 2009 14:27:07 -0400
parents 468e535f1435
children 4be83aec27bd
files dpi/downloads.cc src/uicmd.cc
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/downloads.cc	Wed May 13 13:31:37 2009 -0400
+++ b/dpi/downloads.cc	Fri May 15 14:27:07 2009 -0400
@@ -291,7 +291,8 @@
 DLItem::DLItem(const char *full_filename, const char *url, DLAction action)
 {
    struct stat ss;
-   char *p, *esc_url;
+   const char *p;
+   char *esc_url;
 
    if (pipe(LogPipe) < 0) {
       MSG("pipe, %s\n", dStrerror(errno));
--- a/src/uicmd.cc	Wed May 13 13:31:37 2009 -0400
+++ b/src/uicmd.cc	Fri May 15 14:27:07 2009 -0400
@@ -720,7 +720,7 @@
  */
 void a_UIcmd_set_save_dir(const char *dir)
 {
-   char *p;
+   const char *p;
 
    if (dir && (p = strrchr(dir, '/'))) {
       dFree(save_dir);