Changeset 3123
- Timestamp:
- 09/21/10 12:46:40 (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals.h
r3120 r3123 1113 1113 extern int cs_fork(in_addr_t, in_port_t); 1114 1114 extern void wait4master(void); 1115 extern int cs_auth_client(struct s_auth *, c har*);1115 extern int cs_auth_client(struct s_auth *, const char*); 1116 1116 extern void cs_disconnect_client(void); 1117 1117 extern int check_ecmcache1(ECM_REQUEST *, ulong); … … 1242 1242 extern int cs_init_log(char *); 1243 1243 extern void cs_write_log(char *); 1244 extern void cs_log(c har *,...);1244 extern void cs_log(const char *,...); 1245 1245 extern void cs_debug(char *,...); 1246 1246 extern void cs_debug_nolf(char *,...); -
trunk/module-newcamd.c
r2957 r3123 53 53 } custom_data_t; 54 54 55 static c har *get_ncd_client_name(char *client_id)55 static const char *get_ncd_client_name(char *client_id) 56 56 { 57 57 static const int max_id_idx = 29; 58 static c har *ncd_service_ids[] = { "0000", "5644", "4C43", "4333", "7264", "6762", "6D67", "7763", "6E73", "6378", "6B61",58 static const char *ncd_service_ids[] = { "0000", "5644", "4C43", "4333", "7264", "6762", "6D67", "7763", "6E73", "6378", "6B61", 59 59 "6576", "4343", "5456", "414C", "0666", "0667", "9911", "434C", "4765", "5342", 60 60 "6E65", "4E58", "4453", "8888", "7363", "0669", "0665", "0769", "4543" }; 61 61 62 static c har *ncd_service_names[] = { "generic", "vdr-sc", "LCE", "camd3", "radegast", "gbox2CS", "mgcamd",62 static const char *ncd_service_names[] = { "generic", "vdr-sc", "LCE", "camd3", "radegast", "gbox2CS", "mgcamd", 63 63 "WinCSC", "NewCS", "cx", "Kaffeine", "evocamd", "CCcam", "Tecview", 64 64 "AlexCS", "rqcamd", "rq-echo-client", "ACamd", "Cardlink", "Octagon", "SBCL", -
trunk/module-serial.c
r2056 r3123 32 32 #define IS_BAD 0xFF // incoming data is unknown 33 33 34 static c har *proto_txt[]={"unknown", "hsic", "sssp", "bomba", "dsr9500", "gs",34 static const char *proto_txt[]={"unknown", "hsic", "sssp", "bomba", "dsr9500", "gs", 35 35 "alpha", "dsr9500old", "gbox"}; 36 static c har *dsrproto_txt[]={"unknown", "samsung", "openbox", "pioneer",36 static const char *dsrproto_txt[]={"unknown", "samsung", "openbox", "pioneer", 37 37 "extended", "unknown"}; 38 static c har *incomplete="incomplete request (%d bytes)";38 static const char *incomplete="incomplete request (%d bytes)"; 39 39 static int connected=0; 40 40 static struct timeb tps, tpe; -
trunk/oscam-config.c
r3121 r3123 8 8 #define CONFVARWIDTH 30 9 9 10 static c har *cs_conf="oscam.conf";11 static c har *cs_user="oscam.user";12 static c har *cs_srvr="oscam.server";13 static c har *cs_srid="oscam.srvid";14 static c har *cs_trid="oscam.tiers";15 static c har *cs_l4ca="oscam.guess";16 static c har *cs_cert="oscam.cert";17 static c har *cs_sidt="oscam.services";10 static const char *cs_conf="oscam.conf"; 11 static const char *cs_user="oscam.user"; 12 static const char *cs_srvr="oscam.server"; 13 static const char *cs_srid="oscam.srvid"; 14 static const char *cs_trid="oscam.tiers"; 15 static const char *cs_l4ca="oscam.guess"; 16 static const char *cs_cert="oscam.cert"; 17 static const char *cs_sidt="oscam.services"; 18 18 #ifdef CS_ANTICASC 19 static c har *cs_ac="oscam.ac";19 static const char *cs_ac="oscam.ac"; 20 20 #endif 21 21 22 22 //Todo #ifdef CCCAM 23 static c har *cs_provid="oscam.provid";23 static const char *cs_provid="oscam.provid"; 24 24 25 25 #ifdef IRDETO_GUESSING 26 static c har *cs_ird="oscam.ird";26 static const char *cs_ird="oscam.ird"; 27 27 #endif 28 28 … … 48 48 } cs_proto_type_t; 49 49 50 static c har *cctag[]={"global", "monitor", "camd33", "camd35", "newcamd", "radegast", "serial",50 static const char *cctag[]={"global", "monitor", "camd33", "camd35", "newcamd", "radegast", "serial", 51 51 "cs357x", "cs378x", "gbox", "cccam", "constcw", "dvbapi", "webif", "anticasc", NULL}; 52 52 -
trunk/oscam-log.c
r3120 r3123 214 214 } 215 215 216 void cs_log(c har *fmt,...)216 void cs_log(const char *fmt,...) 217 217 { 218 218 if (!log_txt) -
trunk/oscam-simples.c
r3120 r3123 630 630 /* Helper function for urlencode.*/ 631 631 char to_hex(char code){ 632 static c har hex[] = "0123456789abcdef";632 static const char hex[] = "0123456789abcdef"; 633 633 return hex[(int)code & 15]; 634 634 } -
trunk/oscam.c
r3112 r3123 59 59 int *mcl=0; // Master close log? 60 60 61 static int shmsize = CS_ECMCACHESIZE*(sizeof(struct s_ecm)) +61 static const int shmsize = CS_ECMCACHESIZE*(sizeof(struct s_ecm)) + 62 62 CS_MAXPID*(sizeof(struct s_client)) + 63 63 CS_MAXREADER*(sizeof(struct s_reader)) + … … 85 85 static int shmid=0; // Shared Memory ID 86 86 static int cs_last_idx=0; // client index of last fork (master only) 87 static c har *logo = " ___ ____ ___ \n / _ \\/ ___| / __|__ _ _ __ ___ \n| | | \\___ \\| | / _` | '_ ` _ \\ \n| |_| |___) | |_| (_| | | | | | |\n \\___/|____/ \\___\\__,_|_| |_| |_|\n";87 static const char *logo = " ___ ____ ___ \n / _ \\/ ___| / __|__ _ _ __ ___ \n| | | \\___ \\| | / _` | '_ ` _ \\ \n| |_| |___) | |_| (_| | | | | | |\n \\___/|____/ \\___\\__,_|_| |_| |_|\n"; 88 88 89 89 static void cs_set_mloc(int ato, char *txt) … … 1288 1288 } 1289 1289 1290 int cs_auth_client(struct s_auth *account, c har *e_txt)1290 int cs_auth_client(struct s_auth *account, const char *e_txt) 1291 1291 { 1292 1292 int rc=0; … … 1842 1842 int send_dcw(ECM_REQUEST *er) 1843 1843 { 1844 static c har *stxt[]={"found", "cache1", "cache2", "emu",1844 static const char *stxt[]={"found", "cache1", "cache2", "emu", 1845 1845 "not found", "timeout", "sleeping", 1846 1846 "fake", "invalid", "corrupt", "no card", "expdate", "disabled", "stopped"}; 1847 static c har *stxtEx[]={"", "group", "caid", "ident", "class", "chid", "queue", "peer"};1848 static c har *stxtWh[]={"", "user ", "reader ", "server ", "lserver "};1847 static const char *stxtEx[]={"", "group", "caid", "ident", "class", "chid", "queue", "peer"}; 1848 static const char *stxtWh[]={"", "user ", "reader ", "server ", "lserver "}; 1849 1849 char sby[32]="", sreason[32]="", schaninfo[32]=""; 1850 1850 char erEx[32]="";
Note:
See TracChangeset
for help on using the changeset viewer.