- Timestamp:
- Dec 26, 2003, 2:01:32 PM (20 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 32eed98
- Parents:
- bf73bdd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
rbf73bdd r4357be8 3 3 #include <sys/types.h> 4 4 #include <sys/wait.h> 5 #include <sys/stat.h> 5 6 #include <string.h> 6 7 #include "owl.h" … … 78 79 ZSubscription_t subs[3001]; 79 80 int count, ret, i; 80 81 ret=0; 82 81 struct stat statbuff; 82 83 83 if (filename==NULL) { 84 84 sprintf(subsfile, "%s/%s", owl_global_get_homedir(&g), ".zephyr.subs"); … … 86 86 strcpy(subsfile, filename); 87 87 } 88 89 ret=stat(subsfile, &statbuff); 90 if (ret) return(0); 91 92 ret=0; 88 93 89 94 ZResetAuthentication(); … … 124 129 } 125 130 126 /* sub with defaults */127 if (ZSubscribeTo (subs,count,0) != ZERR_NONE) {131 /* sub without defaults */ 132 if (ZSubscribeToSansDefaults(subs,count,0) != ZERR_NONE) { 128 133 owl_function_error("Error subscribing to zephyr notifications."); 129 134 ret=-2; … … 143 148 } 144 149 150 int owl_zephyr_loaddefaultsubs() 151 { 152 ZSubscription_t subs[10]; 153 154 if (ZSubscribeTo(subs,0,0) != ZERR_NONE) { 155 owl_function_error("Error subscribing to default zephyr notifications."); 156 return(-1); 157 } 158 return(0); 159 } 160 145 161 int owl_zephyr_loadloginsubs(char *filename) 146 162 { … … 150 166 char subsfile[1024], buffer[1024]; 151 167 int count, ret, i; 152 153 ret=0; 168 struct stat statbuff; 154 169 155 170 if (filename==NULL) { … … 158 173 strcpy(subsfile, filename); 159 174 } 175 176 ret=stat(subsfile, &statbuff); 177 if (ret) return(0); 178 179 ret=0; 160 180 161 181 ZResetAuthentication();
Note: See TracChangeset
for help on using the changeset viewer.